Android Question lat lon

Almora

Well-Known Member
Licensed User
Longtime User
hi..
Is it possible to get location coordinates without using GPS?

Sub btn_Click
Dim Maps As LatLng =gm.mylocation
label1.Text = Maps.Latitude
label2.Text = Maps.Longitude
End Sub

I tried such code but it did not
 

DonManfred

Expert
Licensed User
Longtime User
MyLocation is only available after you have requested the permission with Runtimepermissionslib.
You should not set MyLocationEnabled to true in the designer.
Instead load the map with the setting OFF.
In myp ready you then can rewquest the permission. If permission is set you then can set the Flag to True.
 
Upvote 0
Top