I have a TimePicker in android to set an hour for a Alarm (AlarmManager) the problem its i got this
public void onTimeSet( TimePicker view, int hourOfDay, int minute )
{ // Some logical code here }
so in my alarm the user can set how much time before the notify should start, 5 minutes, 10 minutes or 30. so
How can i get hourOfDay and Minute in order to substract the time before the alarm should notify ?
Example:
User set alarm: 13:30 and 10 Minutes before, i need to get 13:20.
Another example: user sets 2:5AM and 30 minutes before, i need to get 1:35AM