Hi, How can get the active context of an application?
The scenario is, I have an AsyncTask inside an activity_A. And on successful completion (means in onPostExecute) of this AsyncTask I want to show a dialog (AlertDialog.Builder builder = new AlertDialog.Builder(*Activity_A.this*);) But in the meanwhile(before completing this AsyncTask) if the application is moved to another activity_B. The above dialog context will not be the current Context so it will through an Exception. So is it possible to get the active Context dianamically? Thanks -- Best Regards, Atif Gulzar I ◘◘◘◘ Unicode, ɹɐzlnƃ ɟıʇɐ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

