Guest User

Untitled

a guest
Jan 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. @Override
  2. public void onStart(Intent intent, int startId) {
  3. super.onStart(intent, startId);
  4. Toast.makeText(this, "Service Started...", Toast.LENGTH_LONG).show();
  5. Log.i(tag, "Service started...");
  6.  
  7. Handler handler = new Handler();
  8. handler.postDelayed(new Runnable() {
  9. public void run() {
  10. Log.i(tag, "Post Delayed Function");
  11. }
  12. }, 2000);
  13.  
  14. }
Add Comment
Please, Sign In to add comment