Hello, I have a service timer after starting after some time the timer is updated and in the console the following error
remove task failed to kill 1 processes for processgroup 12520 The application may be doing too much work on its main thread. the task itself to transmit every second time and display in the progress bar
public class AlarmService extends Service public static final String BROADCAST_ACTION = "gostudent.gostudent.Service.Timer_Activity"; private Handler handler; private long initial_time; private long timeInMilliseconds = 0L; @Override public void onCreate() { super.onCreate(); initial_time = SystemClock.uptimeMillis(); intent = new Intent(BROADCAST_ACTION); handler = new Handler(); final Runnable runnable = new Runnable() { public void run() { DisplayLoggingInfo(); handler.postDelayed(this, 1000); } }; handler.postDelayed(runnable, 1000); } // Send intent to broadcast private void DisplayLoggingInfo() { timeInMilliseconds = SystemClock.uptimeMillis() - initial_time; long timer = timeInMilliseconds / 1000L; intent.putExtra("time", timer); long m = timer / 60L; sendBroadcast(intent); } @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; }