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,583
  • 14
  • 43
  • 70

2 Answers2

3

You can star the WIFI Settings activity with:

startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));

Will Tate
  • 33,169
  • 9
  • 76
  • 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,162
  • 23
  • 34