Top "Lifecycle" questions

A sequence of events or system calls relevant to the creation, startup, inactivation, resuming, shutdown and destruction (cleanup) of some program or its component (activity, library, servlet).

Detect if the application in background or foreground in swift

is there any way to know the state of my application if it is in background mode or in foreground . …

ios iphone swift swift3 lifecycle
Application_End global.asax

Can anybody tell me when Application_End is triggered in a lifecycle of an application? When all sessions are ended, …

asp.net iis global-asax lifecycle application-end
How to check if my activity is the current activity running in the screen

I used Toast to make notification, but it seems it will appear even its activity is not in the current …

android android-activity screen lifecycle
JSF skip Required-Validation without immediate=true

I have multiple forms, where I have mandatory fields and optional fields. To submit such a form I require the …

validation jsf lifecycle immediate-attribute
android finish() method doesn't clear app from memory

I have an activity and I call the finish() method and the activity is not cleared from memory. After calling …

android memory process android-activity lifecycle
Cancel All Subscriptions and Asyncs in the componentWillUnmount Method, how?

I'm getting an error message due to an async method issue. In my terminal I'm seeing: Warning: Can't call setState (…

javascript node.js reactjs react-native lifecycle
Videoview Pausing and resuming

I am new to android development and I am programming a game. My game has cutsceens that play before each …

android lifecycle android-videoview
Automatically log Android lifecycle events using ActivityLifecycleCallbacks?

I am trying to automatically capture and log Android lifecycle events using ActivityLifecycleCallbacks, however documentation on this matter is scarce, …

java android callback lifecycle
Android app out of memory issues - tried everything and still at a loss

I spent 4 full days trying everything I can to figure out the memory leak in an app I'm developing, but …

android android-activity lifecycle out-of-memory
onCreateView method gets called when? and How many times in Activity life cycle?

I wrote a little program looking like this: package com.example.lifecycle; import android.app.Activity; import android.content.Context; …

android logcat lifecycle