[android-developers] to GUI gurus:a question about dialog window and activity

2011-02-01 Thread Jian Chen
A problem confused me for a little while, which is about dialog window and activity。 In a normal activity,an alert dialog is called to be shown on top of this activity,and HOME key is pressed to go to HOME screen。 Then HOME key is long pressed to go back to this activity。 Surprisingly, the alert

Re: [android-developers] to GUI gurus:a question about dialog window and activity

2011-02-01 Thread Kostya Vasilyev
I'm not a GUI guru, but I'll try to answer :) Dialogs are managed by Activity class inside the Android framework. If a dialog is shown with showDialog(id, [bundle]), it's remembered by Activity as being visble, and will be saved by Activity at the same time as your onSaveInstanceState /