views:

166

answers:

1

The answer could be subjective. The answer could be intuition. And I guess the answer could be found from the traditional modal versus non-modal debates.

But in general how do you generally decide which one to go for? What are their use cases?

Thanks.

A: 

A Toast is mostly designed to inform the user of something that's not critical and that doesn't require interaction (and will fade by itself after a certain period of time like "Message saved"), so I'd use a Toast for just that. Also a Toast doesn't prevent the user from using the device/app, you can still activate e.g. underlying icons while the Toast is displayed. (This may depend on the device, but e.g. on the Droid this works.)

Dialogs mostly require the user to make a choice, or (like in a ProgressDialog) show a progress that doesn't require interaction but will keep the user from doing something else in the meantime, which can be important if e.g. you're doing calculations that would fail once the user changes the parameters before they are finished.

Select0r