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:
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!
googleMap.setMyLocationEnabled(true);
googleMap.getMyLocation();
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.