I want to make my android connects two networks at the same time, the first one a wifi network to get internet connection and the other one ad-hoc network ( a network between mobiles to share some data), but the android can join only one network at the same time, Any ideas!!
You can only be connected to one network at the time. However, there is a standard called WiFi direct that will allow you to do what you are asking for, but it isn't yet implemented in Android.
Plug the non-Wi-Fi adapter into a power socket near your router and connect the two with an Ethernet cable. Plug the other adapter (after pairing, if necessary) into any other power socket in your home and it will create a new Wi-Fi network to which you can connect your important devices.
Two BBK Electronics smartphone brands introduced Dual Wi-Fi today - we are talking about Oppo and vivo. The feature allows your phone to connect to two wireless networks simultaneously to get better bandwidth and stability in case one of them fails.
It seems to be possible now. Check this out: http://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html
What you are asking for can not currently be done. You can only be connected to one network at the time. However, there is a standard called WiFi direct that will allow you to do what you are asking for, but it isn't yet implemented in Android. I recently talked with an Android engineer at Google about this, and they are working on it, so it appears you will be able to what you are asking for in the near future, but not right now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With