How to enable the GPS setting automatic

by Louis » Mon, 04 May 2009 09:55:42 GMT


Sponsored Links
 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.
--~--~---------~--~----~------------~-------~--~----~



How to enable the GPS setting automatic

by Raphael » Mon, 04 May 2009 10:06:05 GMT


 


You can't do that with the 1.5 SDK. Feel free to search the forum for
the (many) threads on the subject.

R/


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How to enable the GPS setting automatic

by Louis » Mon, 04 May 2009 10:18:10 GMT


 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.



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Async Task Problem

Hi All,

I am facing the problem of timelag between execution of onPreExecute()
and execution of doInbackground(String... params).On postExecute() of
the Asyc task I am starting a service.
First time when I am executing the async task it is working fine but
If I again executing the same Async task immediately then there is a
lag in execution of onPreExecute() and execution of doInbackground
(String... params).
I am doing nothing on onPreExecute() ,so doInbackground(String...
params) should execute immediately, is I am missing something

Thanks in Advance
Regards,
Glory
--~--~---------~--~----~------------~-------~--~----~

2. Overlay ConcurrentModificationException (continued)

This post is in addition to:

3. Is there a way to get icons for apps on the Market?

4. In which layout it can easy to arrange the more number of editviewfield and textview.

5. advice sought - grid of thumbnails that do something when you click on them.

6. How i get the Selected item from the list Adapter.

7. zip files in resources