Pregunta

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.

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top