How to open an Android Settings Dialog from another Activity? -


my app scans wifi networks , displays them in gridview. when click on item check type of security uses reading through scanresult.capabilities. if it's open network able connect adding wificonfiguration, enabling , calling reconnect.

if network requires password, one of these 2 behaviours :

  1. my activity should display default dialog box ssid, password field, "show password" checkbox, cancel , connect buttons.

or

  1. go wifisettings calling startactivity(new intent(settings.action_wifi_settings)); go straight window described above without having click on item again on window. mean triggering onclick without clicking.

is there way access dialog box activity?

same question came years ago - unfortunately without answer: how invoke system dialog "connect to" secured network?

a bad hack (that should work) call wifidialog including android.jar. bad solution dramatically increases app's size , not rely on specific wifidialog api level on current device.

alternatively, have implement dialog yourself.

by way, there issue opened unfortunately marked obsolete. nothing has changed.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -