Question

When using the power button, the engine calls the onPause(), then onResume() and then onPause() again for the 2nd time. I'm sure this isn't normal behavior. Could it be the device I'm testing on? I've stripped Both functions down to default with just the super calls inside and this still occurs.

Was it helpful?

Solution

The framework decides when onResume/onPause shall be called, It does not matter if you overwrite the lifecycle callbacks or not. You can't change the system behaviour and yes, it might be the device you test on.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top