0

I am receiving the above error when launching my application in version 3.1 in my tablet

It works fine from 2.1 to 2.3 on phones

The code it complains about is as follows:

@Override
protected void onCreate() {
    // Other logic here
            // ....
    showDialog(Constants.INTRODUCTION_DIALOG);
}

What is the problem here? I see other related threads but I don't see one similar to my problem on launch.

Thanks

dakshbhatt21
  • 3,558
  • 3
  • 31
  • 40
DJ180
  • 18,724
  • 21
  • 66
  • 117

1 Answers1

1

May you need call the dialog.dismiss() before your activity is finished. If your dialog is a confirm dialog(yes/cancel) and you want to finish the activity from which the dialog shows when user click the yes/cancel button, you need call dialog.dismiss() in the DialogInterface.OnClickListener() of the yes/cancle button.

see also here.

Community
  • 1
  • 1
liushuaikobe
  • 2,152
  • 1
  • 23
  • 26