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 :

 

Attachments

  • GPSbyJCD.zip
    7.9 KB · Views: 598
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!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…