You have not told us how you want to communicate between the Android device and the Arduino - WiFi or Bluetooth?If using Bluetooth then for receiving data in the Arduino have a look at Serial Input Basics - simple reliable ways to receive data....R
but is there a way to send commands but with different networks ?
You need to be a lot more forthcoming about what you really want to do. At the moment it is just vague hypotheses for a result that is probably nonsense. You can control Arduino by a raft of different means - wireless, wired, bluetooth, Ethernet, WiFi, phone, internet. anything you can think of, including smoke signals, and yes two different ones - at the same time even.
or connect to same network in WiFi shield