How to get current foreground activity context in android? May 31, 2022 by IT Nursery Whenever my broadcast is executed I want to show alert to foreground activity. 17 Answers 17