I would like to make a delay(10 min) for user then after it, user can edit something.
to do this,I created a setAlarm function :
setAlarm
public
The easiest way to make system have a delay and then sound an alarm at the exact specified time is using setExact(), and the code can be something like this.
am.setExact(AlarmManager.RTC_WAKEUP,System.currentTimeMillis() + (time_you_want_to_delay_in_milliseconds) ,pi);