Hi there, does anyone know if its possible to query the AlarmManager to see if/what alarms are set?
I can set an alarm using: AlarmManager am = (AlarmManager)getApplicationContext().getSystemService (Context.ALARM_SERVICE); Intent i = new Intent(getApplicationContext(), OnAlarmReceiver.class); PendingIntent pi=PendingIntent.getBroadcast(getApplicationContext(), 0, i, PendingIntent.FLAG_CANCEL_CURRENT); am.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime(), Const.UPDATE_INTERVAL_MS, pi); And i can then cancel it using: am.cancel(pi); But i can not figure out how to determine if the alarm is still set (e.g. so an activity can inform the user that the scheduled task is already set). AlarmManager has not "isSet()" method. Can anyone shed any light on this? Is it even possible? many thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---