Prompt user to turn on GPS
-
Hi ,
I want to use the GPS capability in an Android phone for my app. The app works fine if the phone GPS is switched on, but if the GPS module is switched off I want to prompt the user to turn on the GPS satellites.
- How can I read whether the phone GPS is turned on or off? The QGeoPositionInfoSource doesnt have a method for this?
Thanks for the help.
-
Try to add to the AndroidManifest.xml the use-feature for forcing your app to working only if GPS is on.
http://developer.android.com/guide/topics/manifest/uses-feature-element.html