Android 4.2.2 : Allowing only one mode (Client, AP and Wifi direct) to work at a time from code

MaiDaftedar

New member
Jul 28, 2013
1
0
0
In Android 4.0, only one of the three operation modes was allowed to work at a time. However in Android 4.2, this is not the case and WIFI and WIFI direct operate together and unfortunately since my driver doesn't support concurrency, this new feature is preventing wifi-direct to operate correctly.

I have tried to call the following
WifiManager wifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE);
wifiManager.setWifiEnabled(true);

to disable Wifi when Wifi-direct is enabled however its not working...

Which method should I call this from I tried the WifiP2PService class, but undefined behaviors occurred.
 

Trending Posts

Forum statistics

Threads
957,001
Messages
6,970,967
Members
3,163,679
Latest member
Amanda40