KzDog Posted February 28 Share Posted February 28 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. Quote Translate Revert translation? Arabic Belarusian Bengali Chinese (Simplified) Chinese (Traditional) Czech Danish Dutch English French German Greek Hebrew Hindi Hungarian Indonesian Italian Japanese Korean Persian Polish Portuguese Romanian Russian Serbian Slovak Spanish Thai Turkish Ukrainian Vietnamese Link to comment Share on other sites More sharing options...
maxmp Posted February 28 Share Posted February 28 @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. Quote Translate Revert translation? Arabic Belarusian Bengali Chinese (Simplified) Chinese (Traditional) Czech Danish Dutch English French German Greek Hebrew Hindi Hungarian Indonesian Italian Japanese Korean Persian Polish Portuguese Romanian Russian Serbian Slovak Spanish Thai Turkish Ukrainian Vietnamese Link to comment Share on other sites More sharing options...
KzDog Posted March 1 Author Share Posted March 1 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. Quote Translate Revert translation? Arabic Belarusian Bengali Chinese (Simplified) Chinese (Traditional) Czech Danish Dutch English French German Greek Hebrew Hindi Hungarian Indonesian Italian Japanese Korean Persian Polish Portuguese Romanian Russian Serbian Slovak Spanish Thai Turkish Ukrainian Vietnamese Link to comment Share on other sites More sharing options...
KzDog Posted March 1 Author Share Posted March 1 (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 by KzDog Quote Translate Revert translation? Arabic Belarusian Bengali Chinese (Simplified) Chinese (Traditional) Czech Danish Dutch English French German Greek Hebrew Hindi Hungarian Indonesian Italian Japanese Korean Persian Polish Portuguese Romanian Russian Serbian Slovak Spanish Thai Turkish Ukrainian Vietnamese Link to comment Share on other sites More sharing options...
Solution maxmp Posted March 1 Solution Share Posted March 1 @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! Quote Translate Revert translation? Arabic Belarusian Bengali Chinese (Simplified) Chinese (Traditional) Czech Danish Dutch English French German Greek Hebrew Hindi Hungarian Indonesian Italian Japanese Korean Persian Polish Portuguese Romanian Russian Serbian Slovak Spanish Thai Turkish Ukrainian Vietnamese Link to comment Share on other sites More sharing options...
Recommended Posts
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.