getitset Posted November 17, 2011 Share Posted November 17, 2011 This is related to my post about how some Choice Dialer voice activated commands don't work anymore either. My post is at:http://forum.powerampapp.com/index.php?/topic/1952-latest-update-20-broke-some-choice-dialer-commands/I still haven't seen the new API definitions posted anywhere yet. Link to comment Share on other sites More sharing options...
hotrodder Posted November 17, 2011 Share Posted November 17, 2011 Im kinda desperate for the API too before I make a purchase as I need to use it for my in car project. Link to comment Share on other sites More sharing options...
Roman Posted November 18, 2011 Share Posted November 18, 2011 Waiting for the updated API, old version is partially broken. Link to comment Share on other sites More sharing options...
maxmp Posted November 29, 2011 Share Posted November 29, 2011 Updated: attached the latest updated Lib and Sample app. Link to comment Share on other sites More sharing options...
hotrodder Posted November 30, 2011 Share Posted November 30, 2011 Many thanks :-) Link to comment Share on other sites More sharing options...
gutz Posted December 27, 2011 Share Posted December 27, 2011 any ETA on widgets source code? Thanks Link to comment Share on other sites More sharing options...
equinoxel Posted February 23, 2012 Share Posted February 23, 2012 Me too for widgets Link to comment Share on other sites More sharing options...
Rang3r Posted February 27, 2012 Share Posted February 27, 2012 Тоже интересуют исходники виджетов и скина. Link to comment Share on other sites More sharing options...
yuberion Posted January 25, 2013 Share Posted January 25, 2013 Здравствуйте. Я пишу плагин для часов Sony SmartWatch для управления Poweramp'ом и возникла загвоздка с отображением обложки. Когда дисплей телефона включен я получаю BroadcastIntent(ACTION_AA_CHANGED) через powerampApi(и соответственно успешно отображаю обложку на часах), но если телефон заблокировать(или он сам потушит экран по таймауту) - Intent c ACTION_AA_CHANGED powerampApi больше не посылает. Хотя, например, ACTION_TRACK_CHANGED я получаю даже с отключенным дисплеем.Я так понимаю это сделано в целях экономии энергии или же ACTION_AA_CHANGED отсылавется не сервисом. Как можно обойти эту проблему?Спасибо. Link to comment Share on other sites More sharing options...
sjp4 Posted February 20, 2013 Share Posted February 20, 2013 poweramp_api_lyrics_protoThis is prototype application utilizing Poweramp AA (Album Art) widget functionality. AA Widget is basically sort of app widget in Poweramp Album art area in main player screen. It's possible to display almost everything the app widget developer wants, and get user interaction events back in the app.Poweramp manages multiple AA widgets internally and shows appropriate UI for them - Close button (which remembers it's state), and selectable icons to switch between AA widgets.Example use of AA widgets are providing song lyrics, song extended information (e.g. pulled from internet), artist/album info, etc.[attachment=0]api_example_lyr.png[/attachment]The download for this seems to have dissapeared - could you upload/link it again? I'd like to play with adding an AA widget but have no idea how without the example! Link to comment Share on other sites More sharing options...
sjp4 Posted March 18, 2013 Share Posted March 18, 2013 Bump.. could you upload the AA widget example again? Thanks! (poweramp_api_lyrics_proto) Link to comment Share on other sites More sharing options...
devindi Posted March 27, 2013 Share Posted March 27, 2013 Hi.I have some trouble with API.Sometimes player cant send broadcast03-27 17:49:46.564: WARN/BroadcastQueue(399): Failure sending broadcast Intent { act=com.maxmpz.audioplayer.AA_CHANGED flg=0x10 (has extras) } android.os.TransactionTooLargeException at android.os.BinderProxy.transact(Native Method) at android.app.ApplicationThreadProxy.scheduleRegisteredReceiver(ApplicationThreadNative.java:1009) at com.android.server.am.BroadcastQueue.performReceiveLocked(BroadcastQueue.java:373) at com.android.server.am.BroadcastQueue.deliverToRegisteredReceiverLocked(BroadcastQueue.java:439) at com.android.server.am.BroadcastQueue.processNextBroadcast(BroadcastQueue.java:487) at com.android.server.am.BroadcastQueue$1.handleMessage(BroadcastQueue.java:140) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1485)Can you help me? Link to comment Share on other sites More sharing options...
maxmp Posted March 6, 2014 Share Posted March 6, 2014 - PowerampAPI and Sample app updated with Scanner API support. This is supported by Poweramp build 551+.- Updated reference resources to match build 550+ Link to comment Share on other sites More sharing options...
mikebutrimov Posted January 28, 2015 Share Posted January 28, 2015 Hello. i'm trying to solve one problem with Poweramp control from external app.So the task is to toggle play / pause, forward and other actions from another application.On the first sight there is something in PowerampAPI.java: /** * Poweramp Control action. * Should be sent with sendBroadcast(). * Extras: * - cmd - int - command to execute. */ public static final String ACTION_API_COMMAND = "com.maxmpz.audioplayer.API_COMMAND";Ok, great, seems that this is what i'm looking for.So i put that in my code: Intent poweramp_intent = new Intent("com.maxmpz.audioplayer.API_COMMAND");poweramp_intent.putExtra("cmd",3);MainActivity.this.sendBroadcast(poweramp_intent);It didn't work. Then i read carefully some examples from Poweramp.apiexample.There are some explicit intents there, like this:startService(new Intent(PowerampAPI.ACTION_API_COMMAND).putExtra(PowerampAPI.COMMAND, PowerampAPI.Commands.TOGGLE_PLAY_PAUSE));But i'm not very familiar with android, and it seems to me that that isn't very possible to create such explicit intent from the other application. So what is the most tru way to controll Poweramp from external apps? Same story in russian:Добрый день. Не подскажите, какой самый правильный способ управлять Poweramp'ом из стороннего приложения? Согласно PowerampAPI.javaможно послать броадкаст и я попытался сделать это, но не сработало. Я так же не уверен, что из стороннего приложения можно послать explicit intent к Poweramp api. По крайней мере у меня не получилось, делал так:Intent pwramp_intent = new Intent(PowerampAPI.ACTION_API_COMMAND);pwramp_intent.putExtra(PowerampAPI.COMMAND, PowerampAPI.Commands.TOGGLE_PLAY_PAUSE);startService(pwramp_intent);и оно валится с: java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.maxmpz.audioplayer.API_COMMAND (has extras) }Возможно я просто неправильно собираю интент.В какую сторону покопать? UPD:Deal with it.Since 5.0.1 all intents to startService must be explicit.So the right way to construct intent is smth like this Intent pwramp_intent = new Intent(PowerampAPI.ACTION_API_COMMAND);pwramp_intent.setPackage(PowerampAPI.PACKAGE_NAME);pwramp_intent.putExtra(PowerampAPI.COMMAND, PowerampAPI.Commands.TOGGLE_PLAY_PAUSE);startService(pwramp_intent); Link to comment Share on other sites More sharing options...
rshakilbabu Posted January 28, 2015 Share Posted January 28, 2015 Congrats, Very nice!I've been expecting this for a while, now I can share mycurrent tracks with my friends over Twitter or Facebookwith Seesmic. Last night I used the Poweramp API in asimple app to expose the current track info for a simplesharing Intent.I love it. Link to comment Share on other sites More sharing options...
Be RapbiG Posted June 2, 2016 Share Posted June 2, 2016 On 3/29/2011 at 6:26 PM, admin said: The code is available here: https://github.com/maxmpz/powerampapi Changes:- PowerampAPI and Sample app updated with Scanner API support. This is supported by Poweramp build 551+.- Updated reference resources to match build 550+v. 1.2- now available on Github- package name is now com.maxmpz.Poweramp- added Widgetpack base classesv. 1.1- fixed few seekbar issuesv. 1.0- initial release Link to comment Share on other sites More sharing options...
maxmp Posted August 25, 2018 Share Posted August 25, 2018 Poweramp API Sample App is update to all recent PowerampAPI changes, they are pretty minor, except Album Art: - album art now is not sent as bitmap within Intent - original album art (embed - from track file itself, or cached downloaded album art) is provided via specific Poweramp Content provider This allows hi-res images in apps utilizing PowerampAPI, but may require additional image processing (e.g. scaling / subsampling / etc. ) Also API + Sample App was tested / polished on Androids up to 9. Link to comment Share on other sites More sharing options...
flyingdutchman Posted August 26, 2018 Share Posted August 26, 2018 Does the api now support playlist inserts? Link to comment Share on other sites More sharing options...
maxmp Posted August 26, 2018 Share Posted August 26, 2018 1 hour ago, flyingdutchman said: Does the api now support playlist inserts? Yes, see example code here: https://github.com/maxmpz/powerampapi/blob/master/poweramp_api_example/app/src/main/java/com/maxmpz/poweramp/apiexample/MainActivity.java#L911 Link to comment Share on other sites More sharing options...
flyingdutchman Posted August 26, 2018 Share Posted August 26, 2018 Thank you. Link to comment Share on other sites More sharing options...
flyingdutchman Posted August 30, 2018 Share Posted August 30, 2018 In trying to load the powerampapi_example into Android Studio, the following error occurs Error:Content is not allowed in prolog. Looking at the log, the following line is repeated many times Caused by: org.xml.sax.SAXParseException; systemId: file:/C:/Users/Theo.Enermax/Downloads/powerampapi-master/poweramp_api_example/poweramp_api_lib/src/main/AndroidManifest.xml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. the content of the above manifgest.xml is ../../../../poweramp_api_lib/AndroidManifest.xml Any advice? Link to comment Share on other sites More sharing options...
flyingdutchman Posted August 31, 2018 Share Posted August 31, 2018 Given I cannot get the sample app to run, I copied the createPlaylistAndAddToIt() routine. Stepping though this, the Playlist is created without any issues. However, inserting into this playlist still fails with an unknown Uri message. Is it me or is there still an issue? Link to comment Share on other sites More sharing options...
maxmp Posted August 31, 2018 Share Posted August 31, 2018 6 hours ago, flyingdutchman said: Given I cannot get the sample app to run, I copied the createPlaylistAndAddToIt() routine. Stepping though this, the Playlist is created without any issues. However, inserting into this playlist still fails with an unknown Uri message. Is it me or is there still an issue? You need Poweramp 795+ build. Link to comment Share on other sites More sharing options...
flyingdutchman Posted September 1, 2018 Share Posted September 1, 2018 Thank you. working fine now. Link to comment Share on other sites More sharing options...
alexzo000om@gmail.com Posted November 3, 2018 Share Posted November 3, 2018 Hi, If you unload from the Poweramp system, when you open the example API, it immediately drops or when you press PLAY Build 804 com.maxmpz.Poweramp.apiexample E/AndroidRuntime: FATAL EXCEPTION: main Process: com.maxmpz.Poweramp.apiexample, PID: 23110 android.app.RemoteServiceException: can't deliver broadcast at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1881) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6938) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 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