Link to home
Start Free TrialLog in
Avatar of deucalion0
deucalion0

asked on

How to get the users location and zoom in upon loading maps Android V2

I can display the map and have the button show on the map, when I tap it it does exactly what I want it to do. In my code I have this:
 googleMap.setMyLocationEnabled(true);
 googleMap.getMyLocation();

Open in new window



Is there a way to do this automatically upon loading the map, without having to tap the zoom into location button?

I researched this and found examples on getting the users location, but the examples I found didn't do what I wanted, I am not sure it was code for V2 maps. Surely there must be an easy, code minimal way to do this by now?


Any assistance is appreciated!

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Molnár István
Molnár István
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial