The GNSS library replaces the old GPS library. The GNSS library is available here: https://www.b4x.com/android/forum/threads/gnss-library-an-updated-gps-library.109110/#content Using it is quite simple: 1. Checking whether location services are available. If not take the user to the...
www.b4x.com
Check the GPS Tutorial.
There is code which is raised when GPS is Off.
You can navigate the User to this setting when GPS is activated.
You can not disable it by code.