Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public int onStartCommand(Intent intent, int flags, int startId)
- {
- String Action = intent.getAction();
- Log.i(TAG, "[ ~-> ] Receiving new action command: " + Action);
- switch (Action)
- {
- case "sk.tuke.smart.makac.COMMAND_START" :
- state = State.STATE_RUNNING.ordinal();
- initStopwatch();
- break;
- case "sk.tuke.smart.makac.COMMAND_CONTINUE" :
- state = State.STATE_CONTINUE.ordinal();
- break;
- case "sk.tuke.smart.makac.COMMAND_PAUSE" :
- state = State.STATE_PAUSED.ordinal();
- break;
- case "sk.tuke.smart.makac.COMMAND_STOP" :
- state = State.STATE_STOPPED.ordinal();
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement