I'm trying to get a general purpose assistant-type thing going with a closed-cover Note 3 and a headset with one button. The best (least-intrusive) way to do that would be with the "skip back" function of PowerAmp. I found the intent for "advance - back," but I can't seem to get it to register.
Would anyone care to help me figure out how to get to the "advance direction" info?
Here's what I had... http://asia-im.googlecode.com/svn-histo ... PiAPI.java
Plus the info in the "General Broadcast" trigger help, which was a huge help.
Thank you Martin, for your great product!
PowerAmp Trigger
Moderator: Martin
Re: PowerAmp Trigger
Hi,
You could detect changing of tracks using action com.maxmpz.audioplayer.TRACK_CHANGED and following extras to access the new track information:
The action com.maxmpz.audioplayer.STATUS_CHANGED should work to detect when the player changes state from play to pause. The extras available in the intent are also printed in the log of Automagic.
Regards,
Martin
You could detect changing of tracks using action com.maxmpz.audioplayer.TRACK_CHANGED and following extras to access the new track information:
Code: Select all
track_info = getBundle("track");
artist = getString(track_info, "artist");
album = getString(track_info, "album");
title = getString(track_info, "title");
path = getString(track_info, "path");
duration = getInt(track_info, "dur", 0);
Regards,
Martin