Android Question setting alarm for a specific time

tufanv

Expert
Licensed User
Hello

I want to set an alarm clock for a specific time. I searched the forum and found this code :

B4X:
Dim i As Intent
   i.Initialize("android.intent.action.SET_ALARM", "")
   i.PutExtra("android.intent.extra.alarm.HOUR", 16)
   i.PutExtra("android.intent.extra.alarm.MINUTES", 58)
   i.PutExtra("android.intent.extra.alarm.SKIP_UI", False)
  StartActivity(i)
this does the trick and set an alarm to 16:58. but is it possible to delete the alarm after it has been executed ? ( even the user does not have the app on foregorund )
TY
 
Last edited:

bgsoft

Well-Known Member
Licensed User
Isnt it even possible to delete manually an alarm from the app programaticly ?

I do not know how, in the Developer Android does not say anything about this question. Sorry I can not help



regards
 

tufanv

Expert
Licensed User
Do we have any other alarm lib or stg like that for this purpose that i may be missing ?
 
Top