Wednesday, 7 August 2013

Android - Dynamicly Get the Current Activity in Foreground

Android - Dynamicly Get the Current Activity in Foreground

here is the situation:
In a Thread an even is triggered.
The current activity needs to be retrieved.
Then a Dialog Box is created on that activity and shown.
Problems: As far as I've searched there is no way to retrieve the current
activity in the foreground.
Extra info: This needs to be able to be handled in multiple activities.
So, it can be popped-up in Activity-A or B or C.

No comments:

Post a Comment