I would like to know if there is a way (probably a system broadcast) to know that the alarm clock default application is now start ringing.
if not - I'll be satisfied also if I could get progrematically list of all active alarms been set by the user(which I could extract from each alarm the exact time it would ring..)
what I tried so far:
I know there is a way to get formatted string to next alarm:
String nextAlarm = Settings.System.getString(context.getContentResolver(), Settings.System.NEXT_ALARM_FORMATTED);
this method returns for certain devices (such all Samsung Galaxy Series..) an empty string, even if the alarm was set (by Samsung native alarm clock app..) . I bet it works only on nexus devices with the default alarms app.
I would like to get a generic solution that would work either way.
TIA
UPDATE
I will try to make my question clearer:
I'm not interested (directly) to know all PendingIntent been held by the AlarmManager
I'm interested only to know about alarms set implicitly by the user, especially about the ones he activated for waking up.
my final goal is to get hint that the user waking up. that's it..