I need a sample Android Java code to override the GPS locations.Help?
-
Details: The android based phone has GPS capability. When a location based app launches (google map), it uses GPS location reported from a GPS module. I need (sample code) to discard the GPS data from the GPS module, and override with my own GPS location that I can define. The overridden GPS data should be applied to any location based app(Google maps,Waze,4sq..) on the phone. Test: 1) when the mock location app is not running, the google map (or any map app) shows my physical location. 2) when the mock location app (I supply any latitude/longitude) is running, the google map (or any map app) shows my location as the location defined in the mock location app.
-
Answer:
Anonymous at Quora Visit the source
Other answers
If itâs already been written you could probably locate it doing a google search but if it hasnât been written yet then you will probably have to write it.I would start by finding out how to write and app that will use GPS to tell you where you are. When you have figured that out, and there is free code out there you can download, then you will have learned enough about the ins and outs of doing this to know if it will be possible.No doubt the best you will be able to do is to turn off your devices GPS and then supply a simulator that replaces those values to any application looking for it.
Mark Bedell
Related Q & A:
- How do I make a window in Java?Best solution by Stack Overflow
- How do I retrieve a URL in Java?Best solution by Stack Overflow
- Where can I see a sample IT resume?Best solution by career-advice.monster.com
- I need a new screen name can you help me.Best solution by Yahoo! Answers
- How can I get a sample of professional CV?Best solution by jobsearch.about.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.