zl25drexel wrote: > Hi, I am trying to create a simple alert dialog that just shows the > user input. However, android appears to be caching the dialog and so > the text in the dialog stays static after the first initialization. > > My codes are as followed, it has one button, one editable text, and > when you click on the button, it's supposed to popup a dialog that > shows the same text as it was enter in the textbox. > > However, the text will stay static after the first click, when the > dialog box is closed and reopened, the same text appear regardless of > the text in the textbox > > Can someone tell me how to make it work the way i wanted it to?
Quoting from the onCreateDialog() documentation: "If you would like an opportunity to prepare your dialog before it is shown, override onPrepareDialog(int, Dialog)." -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

