0

The only possible solution is :

    Intent intent = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS); 
    //Is there any value for entering hotsopt?

    mContext.startActivity(intent);
animuson
  • 53,861
  • 28
  • 137
  • 147
herbertD
  • 10,657
  • 13
  • 50
  • 77

1 Answers1

0

Have you tried:

startActivity(new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS));

Please note (ACTION_WIRELESS_SETTINGS docs):

Activity Action: Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
David Olsson
  • 8,085
  • 3
  • 30
  • 38
  • ACTION_WIRELESS_SETTINGS just entered the first Wifi settings. Thanks. – herbertD Mar 18 '13 at 08:59
  • Was that what you were looking for? You should use the accept answer if that is the case btw. I'm not sure if you can go straight into Hotspots, looking at the Settings link in the answer I guess the different data or wireless settings is the only way. – David Olsson Mar 18 '13 at 09:51
  • I get a way on Android2.2: http://stackoverflow.com/questions/3023226/android-2-2-wifi-hotspot-api/3388910#3388910 But it do not worked on My Android 4.03 pad. Thank you – herbertD Mar 19 '13 at 03:23