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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:49:43+00:00 2026-05-22T15:49:43+00:00

I want to show a simple text view on map view pushpin.on click of

  • 0

I want to show a simple text view on map view pushpin.on click of that pushpin i want to show the detail info.

when user taps on specific point i want to show name of that point..these name I’m storing in POJO class and i want to retrieve from that,now in my code I’m successfully getting names but only problem is names are not displaying on that particulate tap point.

Please Help…

here is my code….

@Override
        public boolean onTap(GeoPoint p, MapView mapView) {          
            str.

            final PopupWindow popupWindow;
            LayoutInflater inflater = getLayoutInflater();
            View layout = inflater.inflate(R.layout.popup, (ViewGroup) findViewById(R.id.rootId));

            TextView text = (TextView)layout.findViewById(R.id.nameTextView);
            text.setText("Lake Name");
            text.setBackgroundColor(Color.BLACK);

            popupWindow=new PopupWindow(layout);
            popupWindow.setTouchable(true);
            popupWindow.setWidth(LayoutParams.WRAP_CONTENT);
            popupWindow.setHeight(LayoutParams.WRAP_CONTENT);
            popupWindow.showAtLocation(layout,Gravity.CENTER_HORIZONTAL,10,0);

            builder=new AlertDialog.Builder(DummyLocationActivity.this);
            text.setOnClickListener(new OnClickListener() {

                @Override
                public void onClick(View v) {

                    popupWindow.dismiss();
                    LayoutInflater inflater=LayoutInflater.from(DummyLocationActivity.this);

                View desc=  inflater.inflate(R.layout.description,(ViewGroup) findViewById(R.id.root));
                builder.setView(desc);

                builder.show();
                }


            });
            return true;
}
  • 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-22T15:49:44+00:00Added an answer on May 22, 2026 at 3:49 pm

    OnTap(int position) you can get the particular item on tap by using the position .

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

Sidebar

Related Questions

I want show annotation view (above one of my pin) after load map. For
I have a simple class that I want to use to show a Dialog
I want to show some bold and some simple word within the same sentence.If
I want to create a simple multiline Alert popup Alert.show(Blah\\nBlah) shows Blah\nBlah when what
I simply want to show off a model in a table that is paginated
hii I want show a pop up Dialog box when i click on to
I want to show a open dialog for the user, where the user can
I have a splash screen , a GridView , a simple text view .
Okay, so ultimately I want a program where the user can input simple data
I am doing a simple chat application and I want to show balloons similar

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.