Android Question Set alarm clock - confirmation

Discussion in 'Android Questions' started by hookshy, Mar 4, 2015.

  1. hookshy

    hookshy Well-Known Member Licensed User

    I use the below code to set up alarm clock .

    Recently I have added user confirmation upon this action , but I discovered that Jelly Bean is already have a confirmation action upon setting alarm clock .

    Q : is default confirmation specific to Jeally Bean or this device in particular
    device tested Huawei ascend Y430



    Code:
    Dim i As Intent
       i.Initialize(
    "android.intent.action.SET_ALARM""")
       i.PutExtra(
    "android.intent.extra.alarm.HOUR", Hour)
       i.PutExtra(
    "android.intent.extra.alarm.MINUTES", Minutes)
       i.PutExtra(
    "android.intent.extra.alarm.SKIP_UI"False)
      
    StartActivity(i)
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Have you tried to set SKIP_UI to True? This way no external dialog will appear.
     
  3. hookshy

    hookshy Well-Known Member Licensed User

    Ok I have fix it ... with skip_UI :rolleyes:
     
  4. shubas

    shubas Member Licensed User

    The alarm gets set 2 mins past the time I set it for? Any reasons for that?
     
Loading...
  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