Sunday, January 13, 2013

How to turn on GPS on Android programatically without an user interface, i.e No Activity, no button?

Use a service launched from the BroadcastReceiver (the one you use to detect incoming SMS). The calls are the same. If you really need GPS coordinates (network isn't good enough), you'll need to call requestLocationUpdates on LocationManager and wait for the GPS to synch and call your listener. I've done the same thing for an app once, worked just fine.

Source: http://stackoverflow.com/questions/14301676/how-to-turn-on-gps-on-android-programatically-without-an-user-interface-i-e-no

stacy keibler stacy keibler all star game oscar red carpet daytona 500 start time ryan zimmerman oscars red carpet

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.