This example shows how to work with the GPS library. The GPS object is declared in the Starter service. It is easier to put the GPS in a service and not in an Activity as the services life cycle is simpler. When the program starts we check whether the location features are enabled: Sub...
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.