I've been trying to turn the result of
AlarmManager m = (AlarmManager)ctx.getSystemService(Context.ALARM_SERVICE);
String next=m.getNextAlarmClock().getTriggerTime();
Into a long variable (I want ms from epoch), the thing is (obviously) I can't convert it directly, as the variable next
only contains information about the day of the week and the time of the alarm.
Do I need to add all the info that's missing on the date by hand? Or is there any method that does it?
I also tried to use
AlarmManager m = (AlarmManager)ctx.getSystemService(Context.ALARM_SERVICE);
long next=m.getNextAlarmClock().getTriggerTime();
but to no avail, as It gives me a nullpointer exception.