ACP_SecondsCounter
This project is for our Android course final assignment.
Project 3: Seconds Counter Project description: This android app supplies a counter service that decreases a counter every second. Clicking different buttons in the MainActivity will get the timer service started to count, read the counter’s values, or stop counting. Function modules:
- CounterService
- counter=10 ;
- decrease counter by 1 every 1 second;
- MainActivity that can
- get CounterService started to count;
- get CounterService stop counting;
- get and show counter’s value from CounterService.
- CounterReceiver that can
- receive the “Time Up” broadcast sent by CounterService;
- stops the CounterService.
- reinforce MainActivity and CounterService, so that
- register the receiver in MainActivity;
- send “Time Up” broadcast when counter=0 in CounterService;