Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Prompt user to turn on GPS
Forum Updated to NodeBB v4.3 + New Features

Prompt user to turn on GPS

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GoodMorninSunshine
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • GianlucaG Offline
      GianlucaG Offline
      Gianluca
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved