Android Example Very simple GPS Program

Hi guys,

how to use :

1. copy the starter into your project

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


please enjoy it ;)

some images :

Screenshot_20230103-114100_2.png
 

Attachments

  • GPSbyJCD.zip
    7.9 KB · Views: 412
Last edited:

Sergey_New

Well-Known Member
Licensed User
Longtime User
When installing, it says that the application is for older versions of Android. Can be corrected?
 

Sergey_New

Well-Known Member
Licensed User
Longtime User
Thanks everyone!
 
Top