04-01-2013 06:27 PM
I am facing a situation where my ported Android application pauses when BB10 device is locked. My application has activity and couple of background services. Please note that when device was locked, my application was in foreground. I couldnt find this behaviour in documentation. Any help would be appreciated.
04-11-2013 04:32 PM
Could you clarify what you mean when you say that your application pauses when the device is locked?
Note*: Android background services are not supported.
Unsupported Software Features: https://developer.blackberry.com/android/apisuppor
04-19-2013 05:30 PM
Not only does Activity onPause get called, but onStop gets called as well.
Use a Service. Anything you want to run "in the background" shouldn't be tied to an Activity lifecycle.
04-22-2013 10:41 AM
As tested on a Galaxy S3, onPause() does get called when the device goes into locking state and can have onStop() called if the system requires resources.
BB10 behaves much the same way. onPause() gets called when the device enters a locking state and eventually calls onStop() to reclaim resources.