Does original alarm clock in android broadcast intent upon alarm? -
i want start application (let's brush teeth)on specific time , day. , don't want write alarm service code alarm part. rather, want know if possible:
1- use original alarm clock comes shipped phone set alarm name. let's time= "6:30 on monday" , name= "pssst!! brush teeth"
2- alarm start ring on monday morning @ 6:30 psst!!... name
3- question here, alarm broadcasts intent (for instance intent.action.bootcomplete) can received broadcast receiver start activity in onreceieve method?
in short lazy write additional code , want use existing phone clock service.
any possibility of success lazy approach?
it's not exact answer on question. however, recommend use alarmmanager:
http://developer.android.com/reference/android/app/alarmmanager.html
all need create intent app , schedule it. pretty minimal (2-3 lines setting up, 1 receiver , definition of receiver in manifest).
you can check example here:
Comments
Post a Comment