[android-beginners] Re: !!!!!!!!!!!!!!!!How to update dialog content?

2009-09-05 Thread John P.
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

[android-beginners] Re: !!!!!!!!!!!!!!!!How to update dialog content?

2009-09-05 Thread John P.
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

[android-beginners] Re: !!!!!!!!!!!!!!!!How to update dialog content?

2009-09-04 Thread 陈增顺
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: --