04-09-2013 08:44 PM
On blackberry z10 device, clicking the power button to turn off the screen behaves the same way as when the user minimizes the app (swipe up from bottom).
This is unlike any other android device/runtime out there today.
On BB10 the following is called for both a powerbutton click and for a minimize gesture:
Note that in all other Android devices, just onPause will be called if user clicks the power button.
Does anyone know of a way to detect if the app is minimized vs, just having the screen off?
04-15-2013 03:47 PM
I've discovered that the method calls behave differently depending on whether the Activity is holding a PowerManager.WakeLock as mine was. Still onStop is getting called which is werid. Anyway I will update this thread and JIRA issue soon with more details.