Jump to content

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


Go to solution Solved by maxmp,

Recommended Posts

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

Posted (edited)
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

  • Solution

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...