Android Question Getting zeros as coordination

Apk2000

Member
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:
Button1_click:
    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:
code.png


Please advice.
 
Top