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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top