Answer the question
In order to leave comments, you need to log in
Launching Alert earlier than necessary?
If you set some action to AlertManager'u through Calendar and the time is less than the one on the device at the moment, then the specified action will be performed now.
Those. asking
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.HOUR_OF_DAY, 0);
calendar.set(Calendar.MINUTE, 30);
calendar.set(Calendar.SECOND, 0);
Answer the question
In order to leave comments, you need to log in
If
you make a simple alarm clock, then there is a completely different class
developer.android.com/intl/ru/reference/android/pr ... reference/java/util/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question