application with GPS

4 replies [Last post]
millermax
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 11/19/2009

Hey,

I want to build an application that using GPS.
How can I fake the points that the GPS returns?
I heard there is a mock GPS, How can I install / use it?

Thanx

1xuntong
User offline. Last seen 5 weeks 5 days ago. Offline
Joined: 12/25/2011
miu miu

Banyan/today a discount prada bags gold and silver silk tired

pandorauk
User offline. Last seen 1 year 8 weeks ago. Offline
Joined: 12/07/2010
Way back in Pandora I was

Way back in Pandora I was approached by Sid’s mother to do a book about Sid Vicious, obviously. With Pandora Bracelets crystal ball in one hand

hobbs
User offline. Last seen 12 weeks 1 day ago. Offline
Joined: 11/12/2007
location manager+kml file

hi,
i am trying to upload sample.kml file and display lon,lat ...
but every time it is displaying 0,0
can anybody tell how to upload kml file and how to access that in code

regards,
android_d

android_d
User offline. Last seen 2 years 49 weeks ago. Offline
Joined: 02/24/2009
LocationManager

You can use the LocationManager to get the Location object from the "gps" provider:

LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
Location loc = lm.getCurrentLocation("gps");
int lat = (int) (loc.getLatitude() * 1E6);
int lon = (int) (loc.getLongitude() * 1E6);