android - How to programmatically bring up list of Wifi networks to connect to? -


i'm programming nexus 7. in program reach point want user select wifi network use (either preconfigured or choice create new one). how can bring dialog programmatically?

in order access wi-fi list, may first need use wi-fi permissions. wi-fi must turned on first before wi-fi scan can provide list of results.

my guess is: access_wifi_state

i think easiest approach launch appropriate intent. action_pick_wifi_network http://developer.android.com/reference/android/net/wifi/wifimanager.html#action_pick_wifi_network

(may wish see: action_wifi_settings)


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -