Android Code Snippet Tip: Sending GPS Speed to the emulator

I have been debugging an app that needs to use the speed component of the GPS reading. Rather than jumping in my car to test/debug, I have been using the emulator. The emulator does not support a speed reading so I add the following to the GPS_LocationChanged sub:

B4X:
Location1.Speed = Location1.Longitude

and pass the speed in through the geo fix telnet command.
 
Last edited:
Top