05-08-2012 01:32 PM
anyon eknow of a way to schedule a alarm that will launch an app
e.g i want to lauch my app on 08:00:00 or launch my app after 1 hour from run...
is there any api that perform such function ?
05-08-2012 01:34 PM
05-09-2012 09:33 AM
i was wondering how do the current playbook alarm clock works ?
is there any time demon/service that i can register my app and add in an alarm event..
when the alarm reach it will launch my app..
in this way, i can't quit my app and save the battery life...
the alarm clock and calendar seems like able to do that....
nosure are they using the NDK api ?
05-09-2012 09:44 AM
05-09-2012 10:18 AM
I suppose you could make a lightweight app that uses a Qtimer to trigger your app via QDesktopServices on the playbook.
QDesktopServices is working fine for launching the playbook email and browser applications now so it should also work fine to launch your app. I believe you need to get the app id via the bps navigator API somehow...
Obviously you would have to start the timer app manually so it is not a great solution... Just thought I would throw that out there...
05-09-2012 10:38 AM
thanx for the advise..
think i can write a timer or light weight app..but i can't exit the app in background...
it will also consume battery power...
actually i want to add in schedule function to my cross platform TuYA apps..
i had already implemented it in wp7 and webOS..
they had time/service demon api that allow me register and add in alarm event...
i want to implement similar function in Playbook...but i'm unable to find any ways to implemnet it...
i was wondering..when the api will be out so that i can implement it...
05-09-2012 10:49 AM
05-10-2012 01:42 PM
While it's true that you can't exit your app and leave a timer running, your app would not be consuming any additional power if it is simply blocked waiting for the timer to expire.
See these docs on using timers:
05-10-2012 02:14 PM