Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. @Override
  2. public void onCreate() {
  3. // TODO Auto-generated method stub
  4. super.onCreate();
  5. timer = new CountDownTimer(1 * 60 * 1000, 1000) {
  6. public void onTick(long millisUntilFinished) {
  7. //Some code
  8. Log.v("Timer::", "Service Started");
  9. }
  10.  
  11. public void onFinish() {
  12. Log.v("Timer::", "Call Logout by Service");
  13. // Code for Logout
  14. stopSelf();
  15. }
  16. };
  17. }
  18.  
  19. @Override
  20. public IBinder onBind(Intent intent) {
  21. // TODO Auto-generated method stub
  22. return null;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement