Launch app in backround without stealing window focus

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
xdauser
Posts: 35
Joined: 05 Aug 2015 17:55

Launch app in backround without stealing window focus

Post by xdauser » 26 Jul 2019 08:49

Good Day Everyone,

Is there any way to launch an app in the background silently without stealing window focus? What I am trying to achieve is keep my navigation on screen and launch the music player in background without changing focus on it. In this particular case, I am talking about google maps and playerpro. Thanks a lot for any feedback.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Launch app in backround without stealing window focus

Post by Desmanto » 27 Jul 2019 15:24

I don't think there is a way to launch app background, unless it support broadcast receiver. Most media players can receive broadcast intent, especially the media button. You can try Control Audio Player, use the play/pause and send to the playerpro. No app switching happen, and the music should have started background.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

xdauser
Posts: 35
Joined: 05 Aug 2015 17:55

Re: Launch app in backround without stealing window focus

Post by xdauser » 28 Jul 2019 17:26

Works perfectly! Thanks a lot!

Post Reply