문제

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