KzDog Posted February 28, 2023 Share Posted February 28, 2023 In the plug-in development of Poweramp, can I detect the events that Poweramp goes to the foreground and back to the background through Intent? Thanks. Link to comment Share on other sites More sharing options...
maxmp Posted February 28, 2023 Share Posted February 28, 2023 @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 More sharing options...
KzDog Posted March 1, 2023 Author Share Posted March 1, 2023 10 hours ago, maxmp said: If you mean Poweramp UI on foreground @maxmp Yes, I mean this. Ok, I understand the current situation. Thank you for your reply. Link to comment Share on other sites More sharing options...
KzDog Posted March 1, 2023 Author Share Posted March 1, 2023 (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 March 1, 2023 by KzDog Link to comment Share on other sites More sharing options...
Solution maxmp Posted March 1, 2023 Solution Share Posted March 1, 2023 @KzDog for Poweramp builds 95x you may want to look into this API: https://github.com/maxmpz/powerampapi/tree/master/poweramp_lyrics_plugin_example Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now