Is there something else that should be called?
showDialog(TIME_DIALOG_ID);
It's in this tutorial but says deprecated in Eclipse.
Is there something else that should be called?
showDialog(TIME_DIALOG_ID);
It's in this tutorial but says deprecated in Eclipse.
This code worked for me. Easy fix but probably not a preferred way.
From http://developer.android.com/reference/android/app/Activity.html
Why
How to solve?
More
To display dialog box, you can use the following code. This is to display a simple AlertDialog box with multiple check boxes:
Heading
Whereas if you are using the showDialog function to display different dialog box or anything as per the arguments passed, you can create a self function and can call it under the
onClickListener()
function. Something like:and add the code of dialog box given above in the function definition.
From
Activity#showDialog(int)
: