Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onCreate() {
- // TODO Auto-generated method stub
- super.onCreate();
- timer = new CountDownTimer(1 * 60 * 1000, 1000) {
- public void onTick(long millisUntilFinished) {
- //Some code
- Log.v("Timer::", "Service Started");
- }
- public void onFinish() {
- Log.v("Timer::", "Call Logout by Service");
- // Code for Logout
- stopSelf();
- }
- };
- }
- @Override
- public IBinder onBind(Intent intent) {
- // TODO Auto-generated method stub
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement