Android Question setting alarm for a specific time

tufanv

Expert
Licensed User
Longtime 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
Longtime 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
 
Upvote 0

tufanv

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