It is usually used in enterprise programming contexts where application, session and request scopes (lifecycles) can be distinguished. In this case specific objects (e.g. an EJB if speaking about Java EE) can have different lifecycles according to these scopes managed by the container infrastructure.
Questions tagged [application-lifecycle]
221 questions
3
votes
1 answer
Don't keep activities - Is it possible in real scenario?
I have seen two developer option
1. Don't Keep activities
2. No Background Process
I understand the use of these two options.
Only thing I am bit confused is , If any other process need memory, will the android system do any of these
1. kill only…

Sowmia Sundararajan
- 1,613
- 2
- 14
- 17
3
votes
1 answer
How to handle activity life cycle involving sockets in Android?
I have an Android activity which in turn starts a thread.
In the thread I open a persistent TCP socket connection.
When the socket connects to the server dynamic data is downloaded.
The thread sends messages using Handler-class to the activity…

Henrik
- 1,983
- 3
- 28
- 52
3
votes
1 answer
Validating use of MVC application with license config in database
I am currently trying to secure our application so that it is unusable if the license expires. There is a registration key stored in our database that I use to determine the validity of the license.
My original idea was to use Session_Start in the…

Copers
- 35
- 5
3
votes
1 answer
Updated values of JSF UIComponents
I have a page with a radio selection with 3 options and a inputTextArea. When I press the submit button on my page, then I need to do some validations... In order to do so, I put a validator on the radio. The problem is that when the validator is…

Moon13
- 283
- 1
- 5
- 15
3
votes
4 answers
Determine if application on foreground - is that frowned upon?
There are lots of reasons why detecting if application is on foreground.
for example - as a trigger to GCM/C2DM push notification - lot's of apps would have good reason implementing different behavior when app is foreground and background.
Other…

Tal Kanel
- 10,475
- 10
- 60
- 98
2
votes
2 answers
How should user stories describing aspects of the same task be mapped?
Our team is getting started with using user stories for gathering requirements. We are experiencing some confusion about how they should be mapped to tasks. It seems we have several user stories that describes different aspects of the same…

Alex Angas
- 59,219
- 41
- 137
- 210
2
votes
1 answer
Flutter: Common class to whole check whole app lifecycle
I wanted to check if my app is in the background or foreground, Therefore the following method will give the state of the App.
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
super.didChangeAppLifecycleState(state);
…

Urvashi kharecha
- 625
- 1
- 9
- 26
2
votes
1 answer
How long does it take for Kubernetes to remove a terminating pod from Endpoints?
We are using Spring Boot in Kubernetes in our project. Recently we decided to add graceful shutdown for our application in order to ensure seamless deployments and make sure no requests are failed during pod terminations for whatever reason.
Even…

ZeeG
- 33
- 7
2
votes
2 answers
How does the child component receive props from the parent component without listening for the lifecycle method?
To update the props object in the child components, usually the life cycle method ComponentWillReceiveProps is used. But I realized that the props for the child component could be updated without listening for ComponentWillReceiveProps.
For example,…

Amanda
- 2,013
- 3
- 24
- 57
2
votes
1 answer
ACTION_IMAGE_CAPTURE intent: Avoid Activity being destroyed / process being killed
This question is for Android developers who are familiar with the Activity Lifecycle.
I'm developing an app that performs face detection and facial landmark recognition.
The according machine learning models take a long time to be parsed from the SD…

robert
- 3,484
- 3
- 29
- 38
2
votes
3 answers
Skipping in Android Lifecycle methods
I am trying to understand the actual concepts of the lifecycle methods of an Activity.
I am focusing on only primary lifecycle methods as mentioned below
onCreate()
onStart()
onResume()
onPause()
onStop()
onDestroy()
Can someone please explain a…

Tushar Srivastava
- 692
- 7
- 11
2
votes
1 answer
React lifecycle methods order
I have infinite slideshow on my project, I'm not sure if my methods are in right order. I'm calling fetch function on componentWillMount() and then using that data on componentDidMount()..
The problem could be something else but it worked before,…

Merim
- 1,283
- 2
- 21
- 36
2
votes
2 answers
How to call viewController's method in appdelegate
I want viewController's method for update data.
So I want use viewController's update method when applicationDidBecomeActive(_ application: UIApplication).
how it possible?

usinuniverse
- 690
- 1
- 9
- 15
2
votes
1 answer
Windows 10 universal application suspend crashes with deadlock
I'm facing problem with suspend functionality in windows 10 universal application. For first time log in i have some logic with requests to api in order to load information for the user just logged in. During this initial loading if "start" button…

Daniel Filipov
- 325
- 4
- 17
2
votes
0 answers
How to be notified when a non-visible Mac OSX app is closing down? -- applicationWillTerminate() not called
I have a Mac app whose applicationWillTerminate:(NSNotification *) handler is not called when the app closes down. There is some c++ memory cleanup code that must be called if the program is shut down, so I need some way to do this.
The reason it…

Alyoshak
- 2,696
- 10
- 43
- 70