views:

320

answers:

1

Hi all,

I've been trying to get this to work for a few days without success. Basically, I'm writing a small test app to make the phone report it's position as somewhere else using addTestProvider and setTestProviderLocation etc. Basically it looks fine and appears to report its location as having changed, however Google Maps etc. seems to still be querying the real GPS provider. Does anyone have any ideas how to get around this?

This isn't an app that will actually be used for anything, it's just really to satisfy my own curiosity and gain an understanding.

Thanks in advance.

A: 

Have you changed the phones system parameters to allow mock locations? Settings-Applications-Development-Allow mock locations?

Not sure if that is your issue, but worth a shot.

Royce
Hi all - As it turns out switching from GPS to Network as a location provider solved the problem. Pentium10 - I know there's already apps out there. I was doing this to gain an understanding and because I wanted to get my code to work, not because I wanted to build a marketable app. I generally don't give up on an unsolved problem!
m0thman