0

I want to get the name of running application and want to perform some action according to the input.

Like if current app is music player, turn volume to max.

  • i don't think you can do that as of android os will prevent you from doing that – Ruchit Nov 17 '21 at 12:23
  • Look at this - https://stackoverflow.com/questions/5841161/get-application-name-from-package-name/29513147 and this - https://stackoverflow.com/questions/3304685/how-to-get-the-list-of-running-applications – Eugene Kuzmenko Nov 19 '21 at 10:21

0 Answers0