Monday, January 14, 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

ann romney marco rubio marco rubio farrah abraham Paul Ryan Speech chris cooley chris cooley

No comments:

Post a Comment

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