Current Location using GPS Library and MapViews?

yonson

Active Member
Licensed User
Longtime User
Hi
first off many congratulations to the team for not only a first class product but also a very useful forum! As this is my first foray into android development I hope you will excuse the amateur questions I'm posting..

I've worked through the GPS tutorial and its worked a treat. However, I only receive location information when the phone is moved (i.e. with the call to <subprefix>_LocationChanged(Location1 As Location))

I was wondering if there is a way to get the phones current location when the app launches, i.e. without having to move around?

Next, I was wondering if there are any plans to develop a mapView at all over the coming months?

Many thanks for your help in advance!
John
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Welcome to our community.
The GPS raises events when there is some movement. However if you pass 0, 0 to Gps.Start then the event will be raised for small movements.

I'm not sure about MapView. The design of MapView is a bit problematic and almost all of its functionality is already supported with WebView. There are several examples in the forum.
 
Upvote 0

yonson

Active Member
Licensed User
Longtime User
thanks yes I saw the examples posted, I'm sure they will help once I've worked through them.

Thanks for the prompt reply!
 
Upvote 0
Top