Back to project page HeadphoneController.
The source code is released under:
GNU General Public License
If you think the Android project HeadphoneController listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ca.mbabic.headphonecontroller.commands; //from w w w .j ava 2s. co m import android.content.Context; import android.content.Intent; import ca.mbabic.headphonecontroller.HCApplication; /** * Command executing the "previous song" command. * @author Marko Babic */ public class PreviousCommand implements HCCommand { @Override public void execute() { Context cxt; Intent intent; cxt = HCApplication.getInstance(); intent= new Intent("com.android.music.musicservicecommand"); intent.putExtra("command", "previous"); cxt.sendOrderedBroadcast(intent, null); } }