Android Question Is it possible to have location by Intent activity?

jkhazraji

Active Member
Licensed User
Longtime User
Is it possible to get current device location by using the intent activity ?
B4X:
Dim i as intent
i.Initialize("android.location.location.getLatitude","")
StartActivity(i)
End Sub
Can intent object return values as altitude or longitude?
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
No.

If you need the location you need to use GPS- and/or FusedLocationProvider-Library
 
Upvote 0

jkhazraji

Active Member
Licensed User
Longtime User
Thanks for your reply..Although my question is still unanswered, is there a short snippet to get the current altitude and longitude?
 
Upvote 0
Top