Solved

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

Posted on 2013-02-07
1
326 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 500 total points
ID: 38864700
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is an explanation of a simple data model to help parse a JSON feed
A short article about problems I had with the new location API and permissions in Marshmallow
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.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

688 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