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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:31:47+00:00 2026-06-11T01:31:47+00:00

I have a Main Activity class which loads the current Location of the user.

  • 0

I have a Main Activity class which loads the current Location of the user. There is a another class which extends ItemizedOverlay. This class takes care of placing a pinpoint.
I have one more class which fetches nearby ATM location.. So i use a for loop for placing pinpoints at all nearby atm location.
I want my app to pop up when i tap on a particular pin. Showing vicinity of that place.

for(int i=0; i < placeName.length;i++){
nearbylatitude= (int) (lati[i]*1E6);
nearbylongitude=(int) (longi[i]*1E6);
Log.e("Location", nearbylatitude+"\t \t"+ nearbylongitude);
GeoPoint myLocation_nearby_place= new GeoPoint(nearbylatitude, nearbylongitude);    
OverlayItem overlayPlaces=new             OverlayItem(myLocation_nearby_place,placeName[i],vicinity[i]);
custom_Places=new CustomPinpoint(drawable_places,     MainMapActivity.this);
    custom_Places.addPinPoints(overlayPlaces);
     overlayList.add(custom_Places);

    }

This is the for loop which places pin point at nearby Location. I know that there is a Method onTap() with ItemizedOverlay… But i dnt know when to call that function and how to retreive which pin is tapped.

Need a urgent help..

  • 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-11T01:31:48+00:00Added an answer on June 11, 2026 at 1:31 am

    Use the following:

    public OverlayItem(GeoPoint point,
    java.lang.String title,
    java.lang.String snippet)
    Parameters:
    point – Position of the item.
    title – Title text.
    snippet – Snippet text.

    OverlayItem currentOverlay = new OverlayItem(CurrLocGeoPoint(),"Text for bubble","");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a main class which extends Activity which should spawn a ListActivity and
I have main activity which call other object, for example GPS class. This GPS
I have a Service class and an main Acitivity class which is supposed to
I have 3 classes in my example: Class A, the main activity. Class A
i have main activity in which i have Four menus. and i have one
I have a design of activities like this I have one main activity and
I am making an app in which i have a main activity that the
I have a main activity which calls a child one via Intent I =
Can I have a class which extend a LinearLayout, as the main class of
I have an application, which does smth... at the begining of main class I

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.