Extension - Activity Lifecycle of an app (onPause → onStop → onResume)

Have you tested in a compiled APK?

The app is not in the background (but still visible). Press the Home button of your device and then come back. Then all 3 events (Pause, Stop, Resume) are triggered, in this (chronological) order.


See also here: Extension - Activity Lifecycle of an app (onPause → onStop → onResume) - #7 by Taifun and here: Extension - Activity Lifecycle of an app (onPause → onStop → onResume) - #8 by ewpatton

...or use this method:

grafik

yes this is compiled app not connected to live testing


@Anke

What he showed in the first video, I think it should trigger OnPause

Use three 3 labels (Label1, Label2, Label3, one for each event) and try again.

Use the Notifier LogInfo method together with Logcat to find out, that the OnPause event gets triggered

What you see in the video is a snapshot of the last screen which was active before moving to the back

Taifun

1 Like

okay will try

Try this one: activityLifecircle.aia (13.0 KB)