Thank you for your replies. The use is to fire an Intent from different applications to display a status message (like a toast) to the user. Always the same status message should be shown independent from the application that fired the Intent. Therefore, I wanted to create an application containing a BroadcastReceiver that displays a Toast. With this approach I could avoid copying all translations of the status message into the applications that should display the status message. Maybe it is cleaner to use an Activity with Theme.Dialog or a Notification with flag FLAG_ONGOING_EVENT instead of using a Toast from the BroadcastReceiver to get to the same result (i.e. avoid copying of all translations).
Regards, Droid-san On Jul 20, 7:40 am, Kumar Bibek <[email protected]> wrote: > Mike is right. And if you have say, 10 apps who generate toasts like > that, then the user gets confused. Most of the time, the toasts will > fail to even catch the users' attention(key pad locked). So, whats the > use? > > Thanks and Regards. > Kumar Bibekhttp://tech-droid.blogspot.com > > On Jul 19, 10:46 pm, Mike dg <[email protected]> wrote: > > > It's very jarring to the user. There is no indication of what app the > > toast is from. Why not just use a notification? > > > On Jul 19, 12:17 pm, droidsan <[email protected]> wrote: > > > > Hi, > > > > What's the reason why a Toast should not be created from a > > > BroadcastReceiver? > > > > Creating a Toast from a BroadcastReceiver (generated via XML) works > > > well even if the "Creating Toast Notifications" documentation only > > > mentions that Toasts can be created by Activities or Services > > > (seehttp://developer.android.com/guide/topics/ui/notifiers/toasts.html). I > > > am interested in the reason why a Toast should not be created from a > > > BroadcastReceiver and what could happen (in the worst case) if it is > > > created from a BroadcastReceiver. > > > > Thanks for your replies. > > > > Droid-san > > -- 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

