Android Question How To Use GPS ?

semar

Active Member
Licensed User
Longtime User
Hello Folks,

I'm relative new to B4A, and I would like to develop an Android application using the GPS functionality of a smartphone.

Basically I need to know which B4A commands should I look for, in order to achieve the following:

- acquire the current GPS position
- save GPS position as text on a text file on the device
- load a GPS position from a previously saved text file
- draw graphically an arrow on the device, that shows me the direction to take between my current GPS position and a GPS position loaded from the text file, in order to reach the target. Like a compass, for instance.
- measure the distance (meters) between the current GPS Position and the GPS Position loaded from a text file

I would be very glad if you can just point me to the right commands or library or code examples I should look for, and may be a small example/snippet on how to use it, where required.

Thanks in advance,
Sergio.
 
Top