0

Let's say my android application has a foreground service which is intended to show currently running application name in the notification.

Given that, Is there any way I can get the name of the application that is running in the foreground currently?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Birju Vachhani
  • 6,072
  • 4
  • 21
  • 43
  • Does this answer your question? [find application running in foreground from service](https://stackoverflow.com/questions/18591116/find-application-running-in-foreground-from-service) – greeble31 Jan 08 '20 at 16:59
  • @greeble31 The permission mentioned in the link is deprecated. – Birju Vachhani Jan 09 '20 at 06:05

0 Answers0