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
Post a Comment