My bad about the dismiss(). I read over your code again and it's in
the dialog's onClick() event, which is right.
On Sep 5, 9:50 am, "John P." wrote:
> To display different dialogs, you have couple options.
>
> 1. Continue to use dialogs managed by the activity, but pass
> different ids in sho
To display different dialogs, you have couple options.
1. Continue to use dialogs managed by the activity, but pass
different ids in showDialog(int), and in your onCreateDialog(int id),
check the parameter id and return the appropriate dialog. In your
current code, you're passing 0 in both bt1
Checked API document just now.
Should override the onPrepareDialog(int id, Dialog dialog) to prepare a
managed dialog before it is being shown.
The following extra codes for my test program makes it works perfectly:
--
3 matches
Mail list logo