Solved

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

Posted on 2013-02-07
1
320 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
1 Comment
 
LVL 13

Accepted Solution

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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Link to a specific evernote 6 87
Connect Samsung S5 to PC via USB 13 65
Plex Plugins question 9 50
Apps on mobile : future? 1 89
I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
This is an explanation of a simple data model to help parse a JSON feed
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now