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
0
votes
1 answer
Saving app state
Is there a natural place to save the state of an Android app as it is shutting down? At the moment I am doing it in onDestroy() for my main activity, then reloading in onCreate() for the same activity. Is that the right place for it?

William Jockusch
- 26,513
- 49
- 182
- 323
0
votes
2 answers
WinPhone app event to react on app process termination
When we deactivate a WP app, it can be tombstoned and terminated later by the OS. I need to save some unsaved app data to a persistent storage when the process is terminated, but not before this. Obviously, the Deactivated event cannot be used for…

TecMan
- 2,743
- 2
- 30
- 64
0
votes
1 answer
Differentiate when UIApplicationDidBecomeActiveNotification is being called
In my app, if UIApplicationDidBecomeActiveNotification is dispatched I present a modal security unlock view.
Everything is working fine except UIApplicationDidBecomeActiveNotification seems to get called whenever the iOS shows the "The App would…

jdog
- 10,351
- 29
- 90
- 165
0
votes
1 answer
Xcode 5 document template Apps OS X: Where to do the Apps lifecycle
I am new to programming for Mac (not iOS but OS X) and so have run into a problem. The template providing a document based application doesn't come with an appDelegate class. Only class provided and used is the NSDocument subclass.
My Problem: Where…

KJA1582
- 13
- 1
- 6
0
votes
0 answers
Windows Store app - SuspensionManager
I started to create a Windows Store App. From Windows Desktop applications I'am used to created several projects to structure my solution. However, I created two projects e.g. AppX and AppY. In both projects I wanted to create pages. AppX would be…

Dani
- 971
- 12
- 31
0
votes
1 answer
Why isn't UIWebView loading an NSURLRequest at applicationWillTerminate: in my app delegate?
I am trying to clean up when the app is about to terminate/enter the background.
But, when the following code is called,
- (void)applicationWillTerminate:(UIApplication *)application
{
NSURL* url = [NSURL…

Hap
- 556
- 1
- 6
- 20
0
votes
1 answer
When should I purge waste data for my iOS app? During launch or termination?
I use CoreData and I am thinking about when I should delete waste (or expired) data.
From what I can imagine the points are as follows:
When the app launches.
When the app terminates. (in the app delegate's applicationWillTerminate:)
One is…

zono
- 8,366
- 21
- 75
- 113
0
votes
3 answers
Handle application states (starting/stopping) not activity states
I'm working on my 1st Android app and wondering how to handle activation/deactivation/starting/stopping globally, not on Activity level.
This great article shows states transition for…

Mando
- 11,414
- 17
- 86
- 167
0
votes
1 answer
IoC Conflicts within a WCF Service
We've created several WCF services that process asynchronous requests. We're using basicHttpBinding, consequently our InstanceContextMode is PerCall and this is what's causing a little confusion. We're seeing unusual behavior from those parts of the…

elucid8
- 1,412
- 4
- 19
- 40
0
votes
1 answer
ASP.NET Application Life Cycle - NOT page life cycle
I am trying to debug an issue I am having with an asp.net web application running on IIS 7.5. I was expecting to find that when we deployed our application by changing the physical path to a new copy of the code, requests were not being…

Russell Clarvoe
- 483
- 4
- 11
0
votes
2 answers
How to get ApplicationExecutionState.Terminated in Window 8 store application
I want to simulate ApplicationExecutionState.Terminated state.
I am doing following
1. Launching the app
2. Navigating to Desktop, waiting for App to be in suspended state
3. Killing the app using End Task from Task Manager.
This application is used…

Tilak
- 30,108
- 19
- 83
- 131
0
votes
1 answer
Application Life Cycle of Windows Phone apps : when data will be lost?
i want to ask some questions about the life cycle of Windows Phone apps
i read more articles about this topic but i can't get some points :
1- why sould i save the data before the app being deactivated as it will be in memory ? is that only…

Ahmed Emad
- 550
- 2
- 7
- 25
0
votes
1 answer
Application Lifecycle Management for Web Applications (TFS)
We are working on a web application (Javascript + php). We want to start using Team Foundation Server in order to apply application lifecycle management. but we don't know where to start! any good guide or tutorials?

Shadin
- 1,867
- 5
- 26
- 37
0
votes
1 answer
Removing Local Notifications when app has been terminated
In my app, I set up local notifications to notify the user while the app is running. In order to clean these up in case the app is terminated, I have set up applicationWillTerminate: to clear these notifications:
-…

jowie
- 8,028
- 8
- 55
- 94
0
votes
1 answer
Reading lifecycle status of other activities in other applications
I'm trying to develop an application that detects abnormal behaviors. So, one of the things it should be able to do is reading the lifecycle status of the other apps ex. Google Play went on pause.
Is this possible?

himura
- 1,555
- 3
- 19
- 30