01-12-2012 10:18 AM
I'm really surprised that my application continue working when the device is in sleeping mode (Off), is it normal?
I've a timer each 30 minutes which insert some informations in an sqlite database and it works with a stopped device!!
Do I have to stop my timer when the device is stopping?
Is there any way to detect in my timer that device is running or not?
I've tested on 3 blackberry 9360 with 126.96.36.1990 (1825) and 188.8.131.524 (2423)
The device is not in hibernation mode? Battery will consume with device off Does this bug/feature present in all os version?
Thanks for your help
01-12-2012 10:29 AM
01-12-2012 10:42 AM
Can you confirm if the timers are actually running while the device is "off" or if they all just ran as soon as the device was turned back on?
And just to clarify, how was the device turned off? Did you hold down the end call button to turn it off? I just want to make sure that off is really off because all apps are hibernated when the device is off.
01-12-2012 11:08 AM
I'm sure that the timer is running because each 30 minutes I've an entry in my database on my three devices.
I make a network connection each 30 minutes but when the device is off, the connection does'nt work and I log an error (because radio is off).
I can send you a screenshot of all my records in private if you want.
I've stopped the device by holding the end call button, and when I click to wake up the device I've a splashscreen with my carrier logo. (I'm really sure that device is off, I'm developping for blackberry for 2 years now)
Thanks for your help
01-12-2012 11:09 AM
What BlackBerry Smartphone model and BlackBerry handheld software version are you testing on? You can find this under Options, About on the BlackBerry Smartphone.
01-13-2012 11:27 AM
Well, I didn't experienced such problem in my applications, but I use some Alarm App downloaded from App World.
It is able to wake me up , even if device is turned off (just as it is explained in post above). I like that "feature" speaking about alarms, but I thought it is done somehow intentionaly by the developer. My device is Bold 9700, OS 6.
01-16-2012 10:51 AM
I wasn't able to reproduce this. I create a simple, recurring timer that creates an entry in the event log every 5 seconds. I started the application then turned off the device for 5 minutes. When I turned it back on I saw the log entries from before the power off and then a gap until it was powered on again. Once powered on, all timer tasks that should have run while the device was off were executed, which results in a lot of event log entries, but all were after the power on time.
Can you post a sample application that reproduces the behaviour you describe here or in Issue Tracker?
01-16-2012 01:16 PM
from my experience, generally the timer is turned off when device is turned off (power off), so when device is powered up, a lot of timer events would be fired for recuring timer task. For example, if I have a timer task to fire once an hour and I have my device power off for 8 hours. That timer task would be executed 7-8 times in a very short interval after device is powered up which would render device unusabled if there are a lot of timers with small intervals.
However from my testing, I also saw that the timer could still run after device is turned off (Torch 9800). However the timer interval won't be accurate and it seems that it won't guarantee to fire off. Right now, at my program. I would listen to power off event and cancel all timer tasks and reschedule timer task when device is powered up.
01-19-2012 04:01 AM - edited 01-19-2012 04:01 AM
I haven't time to create a sample, but maybe you haven't the problem because you're trying to write in the blackberry event log and when the device is powered off, maybe the event log is disabled?
I write in a sqlite database and the insertion time is the correct time not the time when I put the Blackberry On.
I've also looked at my error log file (txt file) when the device was Off, and I've this trace :
[12/01/2012 19:30:16] Information : Start executing Request number 6328791556055146706 (ThreadId = -5328121673169109893; 0 requests left ) (HttpRequestProvider)
[12/01/2012 19:30:16] Radio is off (999666) Infos : Exception trace:
Radio is off (999666)
Radio is off
[12/01/2012 19:30:16] Information : interval=30 (restartGPS)
And the radio was off because my device was off...
Maybe you can try to write in a txt file to reproduce the problem.
Thanks for your reponses