Android Question create alarm with intent

Discussion in 'Android Questions' started by ilan, Jul 17, 2019.

  1. ilan

    ilan Expert Licensed User


    i have seen this thread to create an alarm via intent

    but how do i set the date for the alarm? can i also set it to repeat from Monday to Friday?

    so what i need is to set an alarm at 7:00 that will repeat from monday to friday via intent.

    thanks, ilan
  2. ilan

    ilan Expert Licensed User

    ok i found already the answer:

    SetAlarm(18,17,Array As Int(2,3,4,5,6))
    Sub SetAlarm(Hour As Int, Minutes As Int, days As List)
    Dim i As Intent
    "android.intent.extra.alarm.HOUR", Hour)
    "android.intent.extra.alarm.MINUTES", Minutes)
    "android.intent.extra.alarm.DAYS", days)
    Log("alarm set")
    End Sub
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice