Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9062477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:44:51+00:00 2026-06-16T15:44:51+00:00

I have a lot to do before I am finished, after 8 hours straight

  • 0

I have a lot to do before I am finished, after 8 hours straight working on this I need to ask for help. I have managed to set up V2 maps on Android they work on my device, I do not know where to find a resource that could help me build this up to a more advanced map application, I cannot even get the users location to show. I am debugging on an Android phone which has the internet. I have read more than 10 questions on Stack overflow as well as read through some of the documentation on Google.

Here is my class so far:

import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;

import android.location.Location;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;

public class MainActivity extends FragmentActivity  {


  private GoogleMap mMap;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
     setUpMapIfNeeded();

}

  @Override
    protected void onResume() {
        super.onResume();
        setUpMapIfNeeded();
    }



  private void setUpMapIfNeeded() {
        // Do a null check to confirm that we have not already instantiated the map.
        if (mMap == null) {
            // Try to obtain the map from the SupportMapFragment.
            mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
                    .getMap();
            // Check if we were successful in obtaining the map.
            if (mMap != null) {
                setUpMap();
            }
        }
    }


  private void setUpMap() {

      mMap.setMyLocationEnabled(true);
      mMap.getMyLocation();



    }
}

I need to build up to getting the users location, then allowing the user to search for places and store them, does anyone think this would be possible in V2 maps?

Many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:44:52+00:00Added an answer on June 16, 2026 at 3:44 pm

    I need to build up to getting the users location, then allowing the user to search for places and store them, does anyone think this would be possible in V2 maps?

    You would need to find the user’s location via LocationManager, as you would in any Android app. Optionally, you can feed those locations to Maps V2 via calling setLocationSource() on your GoogleMap.

    UPDATE

    If you use setMyLocationEnabled(true) on GoogleMap, you can retrieve a location via getMyLocation() on GoogleMap. This is simpler than rolling your own location tracking, but you do not get as much control (e.g., you are not informed of movement).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Similar questions to this my have been asked a lot of times before. But
I have given a lot of thought before posting this questions. I have several
I have lot of code in my Tornado app which looks like this: @tornado.web.asynchronous
We have lot of object with this kind of design : Interface and several
I have a lot of difficulties in trying to translate this SQL query to
I'm working on this big website and I want to put it online before
I have a lot on .meta-entity containers. I add Buttons with .after() $(.entry-utility).after(<div class='show_meta'>Artikel
I have the following situation and I know have a lot of this subject
First I have searched a lot before asking ,so thanks in advance for any
This is my first time I need to create a cutscene system. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.