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
0
votes
2 answers

Why is (and how to fix) my Android application triggering an onCreate (ON_CREATE) when removed from memory?

I manage an Android app for a client and am trying to detect when the app is removed from memory. I've noticed via logcat that when the app is removed from memory an ON_CREATE Lifecycle.Event is being sent. I do get an ON_STOP when the app is…
0
votes
1 answer

I call an API in the onDestroy() fragment method, but when I close the app it does not call

How do I call an API inside fragment using kotlin-coroutines before exiting the application? In fact, I want it to be called before leaving the application.
0
votes
2 answers

Cannot create an instance of Application ViewModel

I'm Trying to make a viewmodel scoped to my application to control logic related to showing of not showing pin in multi activity app . I've used AndroidViewModel to pass the application to it and here is the class for AppViewModel …
0
votes
4 answers

onDestroy or dispose in flutter

I am developing a note app, and I want to save my note when I closed the app (when removing the app from recent apps). I tried dispose() method but it did not work. I tried : @override void didChangeAppLifecycleState(AppLifecycleState state) { …
0
votes
1 answer

Sveltekit - How to access a "reactive context" (a store passed down via context) in the Script tag of Child Component?

I'm initialising a Class in the onMount function of a Parent Wrapper component and want to expose it to all the children. I'm currently using a writable store that I set to the Class in the onMount function. let classA; let classStore =…
0
votes
1 answer

How to Resolve the Error of maximum memory exceeds

I got that Memory Exceed error in my Vue typescript Code public async created() { if (this.item) { await this.loadAppointments(); } } private async loadAppointments(_items?: Appointments) { const _item: AppointmentsDetails = await…
0
votes
1 answer

Android lifecycle with remote services and threads

I have an application with remote services and threads that will be started eventually in the services, and I was wondering: should I implement the lifecycle methods such as onPause(), onResume(), onDestroy(), etc. in the Android Activity? Thanks in…
noloman
  • 11,411
  • 20
  • 82
  • 129
0
votes
1 answer

What's the difference between cold launch, warm launch?

Are these terms defined by Apple? Does cold mean app was killed. And warm means app was in memory?
mfaani
  • 33,269
  • 19
  • 164
  • 293
0
votes
1 answer

Why does clicking the close button call `applicationWillTerminate` after `applicationDidEnterBackground` while clicking the minimize button doesn't?

I create a new empty project in Unity and build it on iOS platform and run it on Mac Catalyst. However, I want to figure out the difference between close and minimize. With the help of log, they both called applicationWillResignActive and…
0
votes
1 answer

Wrong type of callable in ApplicationLifecycle hooks in play scala

I am trying to register a stop hook on service in our application (Play Scala). Based on these docs it's pretty straightforward. https://www.playframework.com/documentation/2.8.x/PluginsToModules#Create-a-Module-class And should be something like…
Shurik Agulyansky
  • 2,607
  • 2
  • 34
  • 76
0
votes
1 answer

Getting Number of ALM user connected

I am trying to get number of user connections and License used in a ALM. I was able to accomplish it using Site Admin Console and SQL Queries. Is there a way where I can get it apart from above 2 solutions. I also tried to automate the same…
0
votes
1 answer

Android: pausing an app in background and resuming in foreground

I have an Android app that currently obtains the user's current location and uses it to update the current position on a map; it does this in the background and the foreground so that this functionality runs during the lifecycle of the app…
user3713442
  • 478
  • 8
  • 22
0
votes
2 answers

Should deinit be overridden to remove observers in Swift?

Team mates written code like, deinit { NotificationCenter.default.removeObserver(self) } I commented to remove this as observers are already taken care by the framework. Team mates want to keep this code if no side effect. Now, even if we keep…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
0
votes
1 answer

DynamoDB for an evolving application

We are considering using DynamoDB as out back end for our new multi-tenant Saas application. This application is still very nascent and will evolve over the next few years. We do not know all the entities yet. The entities we do know also will…
Shilpa Nagavara
  • 1,055
  • 2
  • 16
  • 31
0
votes
1 answer

Life Cycle Http request mode integrate IIS

when we talk about the integrated mode of iis in the life cycle of a request it is mentioned that both the managed and unmanaged modules are executed in each step of the life cycle, those events are not supposed to be part of the httpapplication is…
developer
  • 15
  • 5