Android, creating mock geo locations
Today I was playing a lot with GPS and found that in some places, and exactly at my working place in office GPS is not working :)) I saw that my co-workers walking a lot outside the office with devices on hands, but I don’t guess what they are doing untill I got a task to implement GPS based service. What a surprise, I have to walk outside the office too xDD to make LocationManager generate location changed events.
I have found, that we are able to simulate geo locations using a telnet, it is very easy and saves a lot of time:
telnet localhost 5554 (where 5554 emulator’s port)
geo fix latitude longtitude
for example: geo fix -32.5 25.2
For generation of mock locations on the physical device, I have found a great posts:
Happy locating! (: