A Apk2000 Member Oct 14, 2020 #1 Hi I made a code to get my current coordination using the GPS library. Everything works without errors but i get the co ordinations as a zero. Here's the code: Code: If gpsdata.GPSEnabled=False Then ToastMessageShow("Enable GPS.", True) StartActivity(gpsdata.LocationSettingsIntent) Else gpsdata.Start(1, 0) End If Log(Location1.Latitude) Log(Location1.Longitude) Log(Location1.Time) And here's a screen shot: Please advice.
Hi I made a code to get my current coordination using the GPS library. Everything works without errors but i get the co ordinations as a zero. Here's the code: Code: If gpsdata.GPSEnabled=False Then ToastMessageShow("Enable GPS.", True) StartActivity(gpsdata.LocationSettingsIntent) Else gpsdata.Start(1, 0) End If Log(Location1.Latitude) Log(Location1.Longitude) Log(Location1.Time) And here's a screen shot: Please advice.
Erel B4X founder Staff member Licensed User Longtime User Oct 14, 2020 #2 The code is completely wrong. Start with this example: https://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content Upvote 0
The code is completely wrong. Start with this example: https://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content