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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:44:48+00:00 2026-05-23T18:44:48+00:00

I created an activity which is show google map on the screen, and consists

  • 0

I created an activity which is show google map on the screen, and consists of 3 option menus to interact with user selection.

When user press on the sub menu I want to show pop-up input dialog box that user can enter date(dd/mm/yyyy) or pop-up date picker. I will use that date to query the location which kept at that date then mark on the map.

My problem is when I tried to created input dialog or whatever inside my sub menu, nothing show on screen except map view. I think it may have something special to do like this. So, I searched for many days, but still do not get an answer.

Any one have an idea or did this ?
Please, suggest me. This is my first time with google map. Appreciate every answer.

  • 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-23T18:44:49+00:00Added an answer on May 23, 2026 at 6:44 pm

    Your problem is not specifically with the MapActivity. I have an app that has this feature (a MapActivity subclass that shows a date picker) and haven’t had any problems. I suspect the issue lies with how you are showing your date picker. Perhaps try it in an plain activity (ie one that doesn’t derive from MapActivity) to confirm this.

    So in your class that extends the MapActivity you will need something like:

    // the id for your dialog
    static final int DATE_DIALOG_ID = 0;
    // the date from the picker
    Date mDate; 
    
    // so you are defining a member variable mDateSetListener which implements
    // onDateSet. This gets called when the user selects a date.
    private DatePickerDialog.OnDateSetListener mDateSetListener =
        new DatePickerDialog.OnDateSetListener() {
            public void onDateSet(DatePicker view, int year,
                                  int monthOfYear, int dayOfMonth) {
    
                Calendar cal = GregorianCalendar.getInstance();
                cal.set (year, monthOfYear, dayOfMonth);
    
                // store the date that was picked
                mDate = cal.getTime();
    
                // update your map
                // ...
            }
    };
    
    @Override
    protected android.app.Dialog onCreateDialog(int id) {
       switch (id) {
    
        case DATE_DIALOG_ID:
    
            final Calendar c = Calendar.getInstance();
    
            int year = c.get(Calendar.YEAR);
            int month = c.get(Calendar.MONTH);
            int day = c.get(Calendar.DAY_OF_MONTH);
    
            return new DatePickerDialog(this,
                    mDateSetListener,
                    year, month, day);
       }
       return null;
    }
    
    @Override public boolean onMenuItemSelected(int featureId, MenuItem item)
    {
        switch(item.getItemId())
        {
            // handle your date selection menu item
            case R.id.date:
                showDialog(DATE_DIALOG_ID);
                break;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created an activity which holds 3 custom components (defined in xml). 2 components
I have created an activity which sends a number of notifications to status bar.
The main activity includes some variables with set values. I created a sub-activity with
I have created an application having tab activity which in turn has 5 different
I have created an activity in which I have created a progress bar as
I have created sample application which can call show all contacts (phone numbers). But
public class Menus extends Activity { //set constants for MediaStore to query, and show
i have created a workflow activity that do give the item creater of a
I created and binded a service in an activity and I would like to
I have created a custom workflow activity that copies attachments from a case to

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.