On Nov 24, 2:15 pm, William Ferguson <[email protected]> wrote: > Can you explain to me what the different use is for a Dialog vs an > Activity?
Which would you use if you didn't want your underlying activity to pause and stop when the dialog is to be displayed? (and, by extension, to be updating its UI while the dialog is present?) Which would you use if you wanted it to be easy to know whether or not to display the status bar and title bar while the dialog is displaying? Which would you use if you wanted to take advantage of Android's notion of positive/negative/neutral button placement? Which would you use if you wanted an easy way to display the progress of some long-running operation within an activity while not allowing the user to directly interact with the app? Which would you use if you were trying to display an urgent message in response to something that happened in a Service while the app was not in the foreground? (This is a little bit of a trick question and requires some experience with Android, but it's a valid one.) If you haven't guessed by now, that Dialog and Activity and really trying to solve two different problems, and you're better off picking the one that solves your problem in the best possible way. If you think another Activity solves your problem better, then go with it, and understand the ramifications of your choice. Doug -- 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

