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

  • SEARCH
  • Home
  • 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 7025191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:56:29+00:00 2026-05-27T23:56:29+00:00

Is there any way to put a pushpin on an android map and when

  • 0

Is there any way to put a pushpin on an android map and when it’s touched displays a popup with some extra info?

  • 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-05-27T23:56:30+00:00Added an answer on May 27, 2026 at 11:56 pm

    You need to extend this http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/ItemizedOverlay.html.

    public class CustomOverlay extends ItemizedOverlay<OverlayItem> {
    
    private Context context;
    private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>();
    
    public CustomOverlay(Drawable defaultMarker, Context context) {
        super(boundCenterBottom(defaultMarker));
        this.context = context;
    
        //after adding things to the overlay, call these:
        setLastFocusedIndex(-1);
        populate();
    }
    
    @Override
    protected boolean onTap(int index) {
        //called when an item is tapped
        return true;
    }
    
    @Override
    public boolean onTap (final GeoPoint p, final MapView mapV) {
        boolean tapped = super.onTap(p, mapV);
        if(!tapped){            
            //you can use this to check for other taps on the custom elements you are drawing
        }                             
        return true;
    }
    
    @Override
    public void draw(Canvas canvas, MapView mapV, boolean shadow){
        if(!shadow) 
        // if you have a custom image you may not want the shadow to be drawn
            super.draw(canvas,mapV,shadow);
        if(selected != null) { 
        // selected just means that something was clicked
        // it isn't defined in this example
        Projection projection = mapV.getProjection();
        Point drawPoint = projection.toPixels(selected.getPoint(), null);
            //get coordinates so you can do your drawing code afterward
        }
    }
    
    @Override
    protected OverlayItem createItem(int i) {
        return mOverlays.get(i);
    }
    
    @Override
    public int size() {
        return mOverlays.size();
    }
    }
    

    This is a very rough sketch of what you need to do. Hope this helps.

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

Sidebar

Related Questions

Is there any way to put some restriction on password selection while creating new
so is there any way to do it. i want to put a string
Is there any way to put spaces in a C# enum constant? I've read
is there any way to put out the alphabet in iOS? I want to
Is there any way to put my custom name to LIB folder which i
Is there any way to put NSButton object over QTCaptureView? I have done following,
Is there any way to put a non printing or non obtrusive character at
I have a c# source file. Is there any way to put something like
Is there any way in CSS to put a limit on how far something
Is there any way to put formatting inside a multiline textbox? It cannot be

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.