0

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?

menu_on_top
  • 2,613
  • 14
  • 44
  • 71

2 Answers2

3

You can star the WIFI Settings activity with:

startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));

Will Tate
  • 33,439
  • 9
  • 77
  • 71
  • 2
    instead of posting a same answer one can vote up the already posted answer. Its a battle of reputation but make it fair... – Rohit Sharma Feb 01 '11 at 14:01
3
startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));
buru
  • 3,190
  • 25
  • 35