Use a managed dialog and implement onCreateDialog/onPrepareDialog to restore the content of the dialog.
On Mon, Jun 8, 2009 at 5:35 PM, pawpaw17<[email protected]> wrote: > > Guys, > > When your intent kicks knocked on the head by the OS and then restored/ > recreated > (for example when you slide out the keyboard on the G1) if you have a > ListView > populated with items in an activity they appear after the recreate. > > However, if you have a dialog box full of list items and do the same > steps, the > ListView comes back up empty when the window is redrawn after the > slide. > > Is this an Android bug? My list is a pain in the neck to pack into a > bundle, it consists > of Address objects, and there might be ten of them. Am I doing > something > "un-android?" > > I'm thinking of just dimissing the dialog when this happens. But > calling > dismiss in onRestore (for the dialog) doesn't seem to work. > > Any ideas? Thanks so much! > > best, > > pawpaw17 > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

