By the way, I just found next in android codes
public class SecuritySettings
...
private void setProviders(String providers) {
// Update the system setting LOCATION_PROVIDERS_ALLOWED
Settings.System.putString(getContentResolver(),
Settings.System.LOCATION_PROVIDERS_ALLOWED,
providers);
if (Config.LOGV) {
Log.v("Location Accuracy", "Setting
LOCATION_PROVIDERS_ALLOWED = " + providers);
}
// Inform the location manager about the changes
mLocationManager.updateProviders();
}
....
But seems the "mLocationManager.updateProviders();" didn't public in
SDK yet, any suggestions for it?
Best regards,
Louis.
On May 4, 9:55 am, Louis <[email protected]> wrote:
> Hi, All:
>
> Anybody know how to enable the GPS setting automatic? Seems the
> "Toggle Settings" app can handle it, but I didn't find out any
> solutions for it yet.
>
> Please help me if you have time.
>
> Best regards,
> Louis.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---