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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:47:34+00:00 2026-05-23T09:47:34+00:00

Well i have an activity with 3 date pickers. The problem is that after

  • 0

Well i have an activity with 3 date pickers. The problem is that after setting the desired date values to my form and clicking the back the Datepicker dialog show up again. I click the Cancel button and click back again and i got an FC.
From Logcat:

06-28 09:28:57.531: ERROR/AndroidRuntime(2029): java.lang.IllegalArgumentException:       Activity#onCreateDialog did not create a dialog for id 2
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at  android.app.Activity.createDialog(Activity.java:871)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.app.Activity.showDialog(Activity.java:2483)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.util.DialogManager.showDialogInfo(DialogManager.java:63)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.util.ShowConfirmDialogRunnable.run(ShowConfirmDialogRunnable.java:53)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.util.DelegateRunnable.invokePostAndWait(DelegateRunnable.java:59)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.ui.ScreenManager.invokePostAndWait(ScreenManager.java:556)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.ui.ScreenManager.showConfirmDialog(ScreenManager.java:720)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.ui.ScreenManager.exitScreenWithCheck(ScreenManager.java:1046)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at mcrm.android.ui.NewOpptyScreenActivityHelper.onClose(NewOpptyScreenActivityHelper.java:29)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at mcrm.android.ui.NewOpptyScreenActivity.onKeyDown(NewOpptyScreenActivity.java:497)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.view.KeyEvent.dispatch(KeyEvent.java:1037)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.app.Activity.dispatchKeyEvent(Activity.java:2043)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1631)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2368)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2338)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1641)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.os.Handler.dispatchMessage(Handler.java:99)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.os.Looper.loop(Looper.java:123)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.util.ShowConfirmDialogRunnable.run(ShowConfirmDialogRunnable.java:56)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.util.DelegateRunnable.invokePostAndWait(DelegateRunnable.java:59)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.ui.ScreenManager.invokePostAndWait(ScreenManager.java:556)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.ui.ScreenManager.showConfirmDialog(ScreenManager.java:720)
06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.ui.ScreenManager.exitScreenWithCheck(ScreenManager.java:1046)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at mcrm.android.ui.NewOpptyScreenActivityHelper.onClose(NewOpptyScreenActivityHelper.java:29)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at mcrm.android.ui.NewOpptyScreenActivity.onKeyDown(NewOpptyScreenActivity.java:497)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.view.KeyEvent.dispatch(KeyEvent.java:1037)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.app.Activity.dispatchKeyEvent(Activity.java:2043)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1631)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2368)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2338)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1641)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.os.Handler.dispatchMessage(Handler.java:99)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.os.Looper.loop(Looper.java:123)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.util.ShowAlertDialogRunnable.run(ShowAlertDialogRunnable.java:37)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.octanewave.platform.android.util.DelegateRunnable.run(DelegateRunnable.java:19)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.os.Handler.handleCallback(Handler.java:587)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.os.Handler.dispatchMessage(Handler.java:92)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.os.Looper.loop(Looper.java:123)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at android.app.ActivityThread.main(ActivityThread.java:4363)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at java.lang.reflect.Method.invokeNative(Native Method)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at java.lang.reflect.Method.invoke(Method.java:521)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 06-28 09:28:57.531: ERROR/AndroidRuntime(2029):     at dalvik.system.NativeStart.main(Native Method)

And here is a portion of the code:

mPickDate = (ImageView) findViewById(R.id.pickDate);
  mPickDate.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
         showDialog(DATE_DIALOG_ID);
        }
    });

@Override
protected Dialog onCreateDialog(int id) {
 switch (id) {
 case DATE_DIALOG_ID:
     return new DatePickerDialog(this,
                 mDateSetListener,
                 mYear, mMonth, mDay);
 case DATE_DIALOG_ID_RETURN:
     return new DatePickerDialog(this,
       mDateSetListenerreturn,
                 mYear, mMonth, mDay);     
 }
 return null;
}

 // updates the date in the TextView
    private void updateDisplay(TextView mDateDisplay) {
    mDateDisplay.setText(
        new StringBuilder()
                // Month is 0 based so add 1
               .append(mDay).append("-")
               .append(mMonth + 1).append("-")
               .append(mYear).append("")


                );
}
private DatePickerDialog.OnDateSetListener mDateSetListener =
    new DatePickerDialog.OnDateSetListener() {

        public void onDateSet(DatePicker view, int year, 
                              int monthOfYear, int dayOfMonth) {
            mYear = year;
            mMonth = monthOfYear;
            mDay = dayOfMonth;
            updateDisplay(mDateDisplay);
        }
    };

…

I changed the ‘this’ with ‘getParent()’ at onCreateDialog() but nothing happened
Any suggestions?

  • 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-23T09:47:35+00:00Added an answer on May 23, 2026 at 9:47 am

    Your error is on line 63 of DialogManager.java. Without seeing the code, I cannot be any more specific, but it looks as though there is a problem with one of your arguments to showDialog().

    You have overridden the onCreateDialog() method as described here, and, if so, create a dialog box when given id = 2, haven’t you?

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

Sidebar

Related Questions

well i have this messages table with sample values like these: msg_id recipient_id read
Well I have this MySQL stored procedure that I wrote and if I run
Well I have a series of sps that are running a data warehousing solution
well i have most probably an extremly stupid problem but could not figure it
I have an Activity with a list that is bound to a ListAdapter reading
I have an Activity that opens the Camera and starts a preview on a
Well ,thats my code.I want to take values from a DatePicker from a custom
I have an Activity named whereActity which has child dialogs as well. Now, I
I have manager classes that take an activity as a listener. I use the
I have an Activity in my app that simply displays some results from a

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.