Hi all, I am developing an application which uses a native lib that works asynchronously. The lib in question implements the funcionality to display word & xls documents. To simplify it I´ll just say that my application has 2 activities: viewing activity & preferences activity. I need to inform the user whenever an error occurrs in the library and I can´t see the way of showing the error always on top of the application´s visible activity.
What I am doing just now is to set listeners in both activities to get notifications from the library. The listeners are just showing an AlertDialog informing the user about the operation success / error. Unfortunately I end up in strange scenarios regarding where the dialog appears: 1) switching from the viewing activity to the preferences activity If the event from the library comes inmediately after I launch the preferences activity (but before the viewing activity gets the onPause) then the error dialog is shown by the viewing activity and it appears on top of the viewing activity but under the preferences activity. 2) switching back from the preferences activity to the viewing activity If the event from the library comes inmediately after I press the back button in the preferences activity (but before it gets the preference activity gets the onPause notification) then the error dialog is shown by the preferences activity but it dissapears straightaway because the activity is finishing. So, my question is: is there any way at all to ensure a dialog is placed on top of any activity in my application? I am thinking in something like an "application dialog" rather than an "activity dialog". If not, any idea about how can I solve this problem? Any help or feedback would be appreciated. Josep --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

