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. How to connect to a server that runs on a localhost with the same eclipse program as the emulator?

How to connect to a server that runs on a localhost with the same
eclipse program as the emulator?

i need the emulator to connect to a server
both of them are in the building process so they both
are running on the same eclipse for check
but the emulator for some reason cant connect to the localhost
so can someone plase tell me how can it be done....:)
thnx in advance..
--~--~---------~--~----~------------~-------~--~----~

2. What Adapter to use to populate a Spinner dynamically?

I am trying to populate a spinner from a database and I get this exception:

ERROR/AndroidRuntime(1623): java.lang.IllegalStateException:
android.widget.Spinner is not a  view that can be bounds by this
SimpleCursorAdapter

Any example around on how to populate a spinner from a database?

Thanks

Fred









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

3. ODBC Driver

4. Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

5. How to get a GL11Ext instance to call OpenGL Extension functions?

6. Please review my short code !

7. Android app communicating with the "outside"