onSaveInstanceState() and Dialog

Put your problem here if it does not fit any of the other categories.

onSaveInstanceState() and Dialog

Postby MrSnowflake » Mon Nov 03, 2008 11:39 pm

I have this Activity which allows the user to enter a number inside a dialog box (That's the only thing it does, so I thought starting a new activity would be _OVERKILL_). As the user (currently) must pull out the keyboard, I want the text already entered in the dialogbox's EditText to be saved. So in my onSaveInstanceState() I save that the Dialog is open and I try to save the content of the EditText in the View of the DialogBox, but when I try to get the text from the EditText, the EditText is already destroyed. Is there a way to circumvent this?
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 18 guests