here is the situation:
- In a Thread an event 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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…