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,

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.



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
        if (Config.LOGV) {
            Log.v("Location Accuracy", "Setting
        // Inform the location manager about the changes


But seems the "mLocationManager.updateProviders();" didn't public in
SDK yet, any suggestions for it?

Best regards,


Other Threads

1. Use of and <product>.MK Files

We're developing multiple products with Android 2.2 - each with
multiple customer-specific variants.   As such, we have multiple
AndroidProducts.MK files within our source tree and each of those
AndroidProducts.MK files references a few different <product>.mk file

We are finding that because the Build System is scanning for each of
the AndroidProducts.MK files in the folder hierarchy and evaluating
the contents of each of the <product>.MK files, that settings which
one <product>.mk file is setting can be picked up by another product
even if we don't build that product.

For example, we are finding that because /build/target/product/
sets a few stagefright related PRODUCT_PROPERTY_OVERRIDES, that all of
our products (despite not being derived from are pulling in
those system properties.

Unless we specifically take steps to ensure that our file doesn't include our <product>.mk files in the
build tree, the settings which one .MK file sets are included in
another product.  The same doesn't happen for macros set inside the
BoardConfig.Mk so it would seem to be specific to the handling of the
<Product>.MK files.

Are there Recommendations/Requirements for what Macros should and
shouldn't be placed into <PRODUCT>.MK files so that we are ensured
that we can have multiple products in our folder hierarchy which don't
include unanticpated settings from another unrelated product?



2. Link to FB

Selamat siang,

Baru saja saya reset to factory setting wildfire saya, dan sudah selesai
sync contact dengan gmail account saya.
Saat akan coba linked ke FB, saya masukin email dan password, signing in,
dan ada notifikasi 'the service is currently unavailable'
Kenapa ya ? Sudah saya coba bbrp kali tapi belum bisa juga.
Sebelumnya bisa linked.
Mohon masukannya.
Terima kasih.


"Indonesian Android Community [id-android]" 

3. Annotation Processing in Android java Builder

4. Mobile app development framework comparison (App Inventor, Rhomobile, PhoneGap, Appcelerator, etc.)

5. Froyo on iPhon

6. Remove default app di spica

7. How to get scroll position in a GridView? getScrollY always return 0