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.
/* * TODO: license/*from w ww . ja v a 2 s . c om*/ */ package ca.mbabic.headphonecontroller.statemachine; import android.util.Log; import ca.mbabic.headphonecontroller.commands.CommandExecutor; /** * State representing the media button having been clicked exactly thrice since * the last command execution/interval expiration. * @author Marko Babic * */ public class ThreePressState extends HCState { private static final String TAG = ".statemachine.ThreePressState"; public ThreePressState() { isTerminal = false; nextState = new FourPressState(); executor = CommandExecutor.getInstance(); } @Override public void executeCommand() { Log.i(TAG, "Executing ThreePressState command."); executor.executeCommandForState(ThreePressState.class);; } }