To be pretty honest, if you're throwing dialogs up from systems code, you might be having a design issue to begin with. No user wants to see tons of dialogs saying "download failed," or "could not connect to service," etc... I think this is a key point that a lot of people miss in architecting their systems. Sure, for small apps, dialogs works, but for large systems it's just a bad usability experience. If you're deep in the system, then you're probably not in UI anyway, right? So you're probably through a service, or something like this, where you can send back errors to the binder, and they can handle this appropriately. For example, if your main UI thread schedules some delayed activity that is then performed in the background, instead of throwing up a dialog or toast or something like that, perhaps you should simply note this so that whenever the user returns to the UI thread, they will see that their download failed, etc...
Designing for erroneous behavior is a pain, because you almost never see it used, but still have to do a lot of work for it anyway... kris On Mon, Sep 19, 2011 at 6:33 AM, JoachimG <[email protected]> wrote: > Hi ppl! > > Is there a way to show a error dialog deep within the system of my > app? > > Because only an activity is able to call showdialog i have to throw > all excetions out until i can use a try catch with showdialog in an > activity. Is there a way to call showdialog deeper in the system of an > application. For example in a class that is not extended by activity. > > -- > 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 -- 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

