×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: sumesh tg
Added: Nov 3, 2016 11:00 AM
Views: 9
check a service thread is running or not
  1.           if (!service.isRunning()) {
  2.                     service.reset();
  3.                     service.restart();
  4.                 } else {
  5.                     service.start();
  6.                 }