tags:

views:

82

answers:

1

Is there a way to simulate speed on Android emulator?

[edit] The purpose of this to test the getSpeed() method

Example: I would like to set the device is going at 20 miles an hour.

+1  A: 

Yes you can do that. If your using Eclipse to develop your app, you have to go to the DDMS perspective. There you should find a window called Emulator control. In this window you can send new geo locations (GPS coordinates) to your emulator or device. As you want to emaulte speed its better to use GPX or KML files. In this files you can define GPS coordinates and these coordinates are then read step by step. By choosing this coordinates appropriately you can simluate a constant speed.

Roflcoptr
I was going to say exactly this. Do this, Cory
HXCaine