09-25-2013 05:03 AM
I am a pretty new developer to blackberry, so please pardon me if I sound noob.
I am currently interested in creating an app which requires it to start automatically in the background when the phone starts up or restarts to perform certain simple actions such as cleaning up the document folder for example.
I am looking into developing my app as headless using the bb.action.system.STARTED trigger. I have correctly set up my bar-descriptor.xml file using the Xandos app found on github. I managed to invoke the trigger with help from the sample app using the onInvoked() function. However upon restart of my Q10, nothing happens as expected because nothing is invoked.
Is there anyway for me to get the system to invoke the bb.action.system.STARTED trigger every time the phone starts?
Thank you in advance!
09-25-2013 09:06 AM
09-25-2013 09:10 AM
There's some suggestion that BlackBerry are doing this deliberately take a look at the article on CrackBerry for further information...
09-25-2013 09:27 AM
09-25-2013 09:32 AM
09-25-2013 09:33 AM
09-25-2013 09:39 AM
09-25-2013 09:08 PM
I do not need the app to be long running actually . I need it to start up automatically to do some clean up in the shared folders when the device starts/restarts.
According to the documentation, triggered headless apps are supposed to run for 20 seconds? I do not see any problems with the mishandling of system resources.
Seems like we need to wait for further updates from blackberry. Thanks guys for all the help! Cheers!
09-25-2013 10:27 PM
And i though only long running and NON triggered apps need to apply for permission? Goes again to show how sometimes the documentation isnt well documented once again.
On another unrelated note, the 3 Processor related functions in the HardwareInfo class is marked by the compiler as deprecated but the docs haven been updated to reflect it, weird.
09-25-2013 10:42 PM