Questions tagged [application-lifecycle]

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.

221 questions
7
votes
1 answer

Application_Start ASP.NET

If get this from the Microsoft official documentation: The Application_Start and Application_End methods are special methods that do not represent HttpApplication events. ASP.NET calls them once for the lifetime of the application domain, not for…
ab_732
  • 3,639
  • 6
  • 45
  • 61
7
votes
6 answers

Which method and function is called first when any iOS application start?

Which method and function is called first when any iOS application start ?
Milesh
  • 271
  • 1
  • 8
  • 24
7
votes
0 answers

Why applicationDidBecomeActive called right after notification center fully opened?

I've been playing with iOS app lifecycle to learn it. I've created a super-simple app which just prints application delegate methods called. However, I observe some strange behaviour. [Case 1] When I swipe from bottom to up to open control center I…
Mikhail Churbanov
  • 4,436
  • 1
  • 28
  • 36
7
votes
2 answers

What does 'GA' mean for sourcecode?

What does GA stand for? Like: 1.0.0.GA - Bean Validation (JSR-303)
membersound
  • 81,582
  • 193
  • 585
  • 1,120
6
votes
0 answers

LifecycleObserver.onCreate is not called when Application is created

We have a task that is run when the Application is created and we're trying to move the code from our Application object's onCreate to their own Lifecycle aware classes. I'm added my ApplicationLifecycleAwareTaskRunner (a LifecycleObserver) to the…
scottyab
  • 23,621
  • 16
  • 94
  • 105
6
votes
4 answers

Best way for a Grails Service class to detect application shutdown?

I have a Grails service class that needs to do some cleanup when my Tomcat application server is shut down. I don't see anything in the Grails docs about a service.stop() or destroy() method, or a way to implement any sort of application lifecycle…
Dean Moses
  • 2,372
  • 2
  • 24
  • 36
6
votes
1 answer

Considering Porting App from .NET to Erlang - need advice

I am looking at Erlang for a future version of a distributed soft-real-time hosted web-based telephony app (i.e. Erlang looks like absolutely the perfect choice for this kind of app). I come from a .NET background and the current version of this app…
Andrew Matthews
  • 3,006
  • 2
  • 29
  • 42
6
votes
3 answers

Android App/Activity To Start Fresh Completely every time it starts or resumes?

I have a kid's app for Android and there are some unique considerations for this application since the app has basically no navigation (it's for young kids). I do not want to break my app UI (which has been successful on iPhone) by adding a…
peter
  • 471
  • 5
  • 16
6
votes
3 answers

How to restart an app in UWP?

Currently in my UWP application, I provide a way to change the app theme. But in order for the change to be effective, the user has to manually close the app and restart it. I'm looking for a way to do it automatically, ie, restart the app…
Junpei Kun
  • 653
  • 8
  • 11
6
votes
1 answer

How to implement the lifecycle callbacks of play framework(2.5.x)

I am trying to learn play framework. I want to implement the lifecycle callbacks of play framework in my application. Now i saw that it can be easily done using GlobalSettings below: object Global extends GlobalSettings { override def…
6
votes
2 answers

Android Application onCreate, when is it called

I still don't get how the Application (not Activity) lifecycle is, It is pretty obvius that Application's onCreate method is called when you start the GUI. But, is it started in ANY or ALL of the following cases? App Widget is visible Broadcast…
htafoya
  • 18,261
  • 11
  • 80
  • 104
5
votes
4 answers

applicationWillTerminate: not being called

I'm using applicationWillTerminate: to save some last-minute stuff. But the problem is that it never gets called. If I do something like this at the top of the method: NSLog(@"Something"); it doesn't get called and doesn't get outputted to the…
5
votes
2 answers

Do all widgets in Flutter have the "bool this.mounted" property?

Peace be upon you I am researching Flutter's widget lifecycle and stopped at a point which is the this.mounted boolean variable, it does exist directly in the State class, which can only be connected with a StatefulWidget as a subclass and never…
5
votes
1 answer

Lifecycle.Event.ON_DESTROY is not called in Application

I want to call some method when a user exits an application (see 1, 2 for help). class BaseApplication : Application(), LifecycleObserver { override fun onCreate() { super.onCreate() // Register observer. …
CoolMind
  • 26,736
  • 15
  • 188
  • 224
5
votes
1 answer

Xamarin.Forms.Application.Current.MainPage is null

I have unusual case scenario where I am migrating the app from iOS to Forms. My setups are - iOS project loading signing UIViewController and handelling login routine. MainPage is null. On Login routine finished I load XF view as UIViewController…
1
2
3
14 15