I am wanting to programmaticaly set the state of the enable flag for
WiFi Hotspot Tethering in
Froyo. Something like this:
boolean isEnabled =
Settings.System.getInt(context.getContentResolver(),
Settings.System.SOME_WIFI_TETHER_FLAG, 0) == 1;
// toggle HOTSPOT mode
Settings.System.putInt(context.getContentResolver(),
Settings.System.SOME_WIFI_TETHER_FLAG_ON,
isEnabled ? 0 : 1);
// Post an intent to reload
Intent intent = new
Intent(Intent.SOME_WIFI_TETHER_FLAG_CHANGED);
intent.putExtra("state", !isEnabled);
sendBroadcast(intent);
Is there a programmatic flag for turning off wifi hotspot mode in 2.2
from Settings.System class?
Thanks in advance
Tim
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en