I use this code to to schedule run Service.

AlarmManager alarmManager = (AlarmManager) 
getSystemService(Context.ALARM_SERVICE);
Intent i = new Intent(this, MyService.class);
PendingIntent pintent = PendingIntent.getService(this, 0, i, 
PendingIntent.FLAG_UPDATE_CURRENT);
alarmManager.set(AlarmManager.ELAPSED_REALTIME, 
SystemClock.elapsedRealtime() + RECHECK_INTERVAL, pintent);

It works. But when I kill the app in task manager. Alarm doesn't run it 
again.
Why? Where is problem?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to