?
Solved

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

Posted on 2013-02-07
1
Medium Priority
?
327 Views
Last Modified: 2013-02-08
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!
0
Comment
Question by:deucalion0
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
Molnar István earned 2000 total points
ID: 38864700
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days software publishers make it possible to move all the possible applications on smartphones, tablets, smartwatches, and more. Although behind every logic and decision is a gross doubt: how do they make it possible? In this blog post, we sha…
If you use the Google Now Launcher, as an aftermarket add on, have a Samsung Note 5 and are worried about power consumption be wary of using the ultra power saving mode.  Here is what happened to me when I made the mistake of trying this out...
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question