Hello,
I have a requirement for showing dialogs in my application. Alert dialogs
fulfill by needs for now.

I wish to discuss..and conceptually understand in the process, the exact
relationship between the Activity that is being displayed at a given point
of time...and the Dialog that pops up on the screen.

The Android documentation provides us with 2 options regarding this:

1. To bind the dialog with the activity, making the current activity the
'owner' of this dialog for managing its state. In this case, we create the
Dialog in the onCreateDialog callback.

2. To create a dialog 'outside' of the activity's context, where the
activity is no longer the owner of this dialog.

I wish to understand what extra liabilities will the developer face if I
follow Option # 2?

My requirement is for option 2 above. I wish to display a dialog for an
incoming call. However, the user may be at any 'page' (activity) of my
application when the call is received. Hence, i cannot predict the activity
that would be displaying at that instant, when i need to display the dialog
for the incoming call.

My questions are as follows:

a) Who manages the Dialog state in case of Option 2 and how ?

b) What if the user flips the screen when the dialog is being displayed by
following Option 2 above ?

c) Can any user defined object (Eg: CallManager in my case) be assigned the
owner of the Dialog being displayed ?

Any insight/answers are very much appreciated....

Thanks for the help

Best Regards

AD.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to