Jump to content

Monitor events when Poweramp goes to the foreground and back to the background


KzDog
Go to solution Solved by maxmp,

Recommended Posts

@KzDog depends on "foreground" definition. If it's a foreground service state (required to play anything on Android when UI is on background), then Poweramp exposes its playback state via Poweramp API and also standard Android Media APIs, notification APIs expose this too.

If you mean Poweramp UI on foreground, no such intents or "normal" APIs exists - tracking apps like that leaks too much data and is not secure. (On lower Androids you can spy on apps like this, but not on the recent versions).

What is the state needed for? Probably there is some easier solution or/and API for that.

Link to comment
Share on other sites

10 hours ago, maxmp said:

What is the state needed for? Probably there is some easier solution or/and API for that.

@maxmp I have an external lyrics plug-in that can be drawn on the top of all applications, but I want to hide it when I enter the Poweramp UI and display it when I exit the Poweramp UI.

Edited by KzDog
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...