i am able to enable google maps but it starts at the default 0,0 latitude and longitude. Currently using eclipse.
Asked
Active
Viewed 161 times
0
-
you are talking abt google maps app installed on your device..or you have done a code for a map.. – Meenal Oct 12 '14 at 13:32
-
@MeenalSharma i have done the code for a map – asdwenj Oct 12 '14 at 13:39
-
then you have to write the code to get your location..and then you can set it on google map... – Meenal Oct 12 '14 at 14:56
1 Answers
1
these two links helps you to get your current location...
javapapers.com/android/get-current-location-in-android/
How to show my Current location in Google Map in android?
and if you have done the code to get location then simply set it using
mMap.addMarker(new MarkerOptions()
.position(new LatLng(lat, long))
.title("My Location"));