menu_on_top
menu_on_top

Reputation: 2613

How to move "onClick" from a button to the wifi settings

i would like to have a button that on click will direct the user to the wifi settings of the device..any idea for the onclick code please?

Upvotes: 0

Views: 1411

Answers (2)

buru
buru

Reputation: 3210

startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));

Upvotes: 3

Will Tate
Will Tate

Reputation: 33509

You can star the WIFI Settings activity with:

startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));

Upvotes: 3

Related Questions