Android Example Very simple GPS Program

Hi guys,

how to use :

1. copy the starter into your project

[CODE lang="b4x" title="B4A"] If Starter.GPS1.GPSEnabled = False Then
ToastMessageShow("Please enable the GPS device.", True)
StartActivity(Starter.GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
Else
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then CallSubDelayed(Starter, "StartGPS")
End If[/CODE]


please enjoy it ;)

some images :

Screenshot_20230103-114100_2.png
 

Attachments

Last edited:
When installing, it says that the application is for older versions of Android. Can be corrected?
 
Thanks everyone!
 
Back
Top