faedas wrote:Hi. I'm facing a little problem right now.
In my App i have to draw a Bitmap at my current location in order to draw a route to an other location.
What do i have to do to get the GeoPoint of my current location.
I dont have to update it constantly, just have to draw it once.
To get the GeoPoint of your current location you'd need to do something like
Using java Syntax Highlighting
Location loc;
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
GeoPoint point = new GeoPoint(( (int) loc.getLatitude())*1e6, ((int) loc.getLongitude())*1e6);
Parsed in 0.032 seconds, using
GeSHi 1.0.8.4
that should give you a GeoPoint that has your current location built in. Oh ya, and
The more you learn, the less you know.