On a Map I want to show the path direction from my location to a certain location. I have implemented the logic for drawing the path on the map already, but I have issues determinate my current location.
I have being using new LocationClient for retrieving my current location just like it is described in this article: http://developer.android.com/training/location/retrieve-current.html , and i have read somewhere that the new maps API v2 is using the same technique for getting my location.
Anyway, when I draw the path directions on the map from my location to the desired one, the starting point of the path is different from the blue dot that marks my current location.
The blue dot shows the right position, and my implementation doesn't. So, is there a way to get the coordinates of the blue dot marker, something like map.getMyLocationMarker().getLocation()
or I need to figure out some other way to get my location manually?
UPDATE
I forgot that I have left this question opened, but here is my answer below.
It was actually a really stupid mistake I did.
But here is the answer. The procedure described in the link in the question is the right thing to do.
My problem was that I saved the fetched data to a new shared preferences key, and I was reading it from the old one where the wrong location was saved. Yeah it is pretty dumb :)
So follow the tutorial on android developer portal and there will be no mistakes with it.