views:

141

answers:

2

I've got an application in the browser that's customized to use Android's browser geolocation APIs. I'd like to find a way to fake the lat/lng that's sent to the browser so I can type in arbitrary coordinates.

In doing some research I came across DDMS - http://developer.android.com/guide/developing/tools/ddms.html - which seems to do what I want, but seems to require the IDE or an emulator. I don't want to use an emulator because I want to test on the device and I don't have the IDE set up for Android.

Does anyone know if there's a way to send mock location data to an Android device without loading up the IDE (or doing it through the emulator)?

A: 

I do not believe this is possible -- sorry!

Also the DDMS and IDE solutions are one and the same and only work with the emulator.

CommonsWare
Cool, I'll do a bit more research and if it doesn't work I'll consider this answered. Thanks!
ryanstewart
A: 

Just in case someone stumbles across this question like I did, here is some info about how to mock the LocationProvider on a physical device. Marking this as community wiki because I didn't come up with the original answer. Code is listed in diffract.me/2009/11/android-location-provider-mock (looks like domain is expired as of 9/29/2010, I used Google's cache of the page) & from stackoverflow.com/.../android-mock-location-on-device.

Marc Bernstein