I have a question about FusedLocationProvider. I granted permission to use Location in my app, it works fine. Now I have a situation with one phone where GPS itself is turned off (the that under Connections settings). So my code tries to connect to FusedLocation Provider, connection is successful but then nothing happens. No message, no errors.
How can I check if the GPS is turned on and if not - show the message?
** This is the only option to enable location services from inside your app. ** Example was updated and is based on B4XPages. Don't miss: 1. ShowResolutionDialog sub that is added to Main. It needs to be added to the activity that hosts B4XPages. 2. #AdditionalJars in Main. 3. Manifest editor...