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 9115869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:32:07+00:00 2026-06-17T04:32:07+00:00

How to I make the markers in Android Google Maps API v2 become clickable

  • 0

How to I make the markers in Android Google Maps API v2 become clickable so they will either bring up a menu with options or just start a new activity? I believe I made the markers in my app currently in a “newb” method. I didn’t assign them a name or a method to be able to link it in with the rest of the required code.

googleMap.addMarker(new MarkerOptions()
        .position(latLng)
        .title("My Spot")
        .snippet("This is my spot!")
        .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));

If you ANSWER this, please include a sample code of a marker being introduced with a unique name and then being set as clickable to open a new activity.

  • 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-17T04:32:09+00:00Added an answer on June 17, 2026 at 4:32 am

    All markers in Google Android Maps Api v2 are clickable. You don’t need to set any additional properties to your marker.
    What you need to do – is to register marker click callback to your googleMap and handle click within callback:

    public class MarkerDemoActivity extends android.support.v4.app.FragmentActivity
        implements OnMarkerClickListener
    {
        private Marker myMarker;    
    
        private void setUpMap()
        {
            .......
            googleMap.setOnMarkerClickListener(this);
    
            myMarker = googleMap.addMarker(new MarkerOptions()
                        .position(latLng)
                        .title("My Spot")
                        .snippet("This is my spot!")
                        .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));
            ......
        }
    
        @Override
        public boolean onMarkerClick(final Marker marker) {
    
            if (marker.equals(myMarker)) 
            {
                //handle click here
            }
        }
    }
    

    here is a good guide on google about marker customization

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

Sidebar

Related Questions

I am Using Google maps api v3 and want to make markers using loop
I am using google maps api to place markers on a map. The gps
I try to make a location app based on Android Maps API v2. I
I'm using Google Maps to make a map that can load markers with lat/lng
I am busy with a script that will make a google maps canvas on
Trying to make an google maps overlay in an android program. Inside of my
Hi, I'm trying to make a website with Google Maps API and get coords
On my site , I'm using Google Maps API v3 to place house markers
I have a map with multiple markers of companies using google maps API v3.
Interesting combination of problems with the Googles Maps API when parsing the markers with

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.