Android Question gps

rogel a. tolentino

Member
Licensed User
i was not abble to display the latitude ang longitude then i click button. can somebody help me
my code

Sub Button6_Click
If gps1.GPSEnabled=False Then
'Msgbox(1,23)
ToastMessageShow("Please enable your device's GPS capabilities", True)
'StartActivity(gpsClient.LocationSettingsIntent)
Else
'Msgbox(1,22)
Main.rp.CheckAndRequest(Main.rp.PERMISSION_ACCESS_FINE_LOCATION)
'Msgbox(1,25)
gps1.Start(0, 0)
'Msgbox(1,2)
ProgressDialogShow("Waiting for GPS location")
gpsStarted = True
Msgbox(1,4)
End If
End Sub

Sub gps_LocationChanged (gpsLocation As Location)
'ProgressDialogHide
'userLocation=gpsLocation
'gpsClient.Stop
Msgbox("LATI:" & gpsLocation.Latitude,"")
Msgbox("LONG:" & gpsLocation.Longitude,"")
'StartActivity("actDisplayMap")
End Sub
 

Mahares

Expert
Licensed User
Longtime User
i was not abble to display
1. Why are you posting 2 threads that are the same.
2. Why aren't you using code tags. My goodness, you have been a member for over 3 years with several threads. It should be common knowledge. Is it out of disregard to other members.
3. Use Msgbox2Async, not MsgBox
4. Now I let someone else answer your GPS question. I do not work with GPS.
 
Last edited:
Upvote 0
Top