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
1
vote
1 answer

Overriding the Activity/Task behavior in Android

I'm writing a simple Android app, and I'd like better control over the navigation/relationship between the activities. I don't want my activities to act like android activities...I don't want them to stack up within the Task. I want one Activity…
Rich
  • 36,270
  • 31
  • 115
  • 154
1
vote
2 answers

Creating a log trace of the application life cycle

I have created an application that extensively requires user inputs and interaction and even though I have made sure that I test and catch every possible case that might throw an error I want to be able to create a mechanism that traces the error…
Garima Tiwari
  • 1,490
  • 6
  • 28
  • 46
1
vote
1 answer

Changing rootViewController in applicaitonWillEnterForeground

Long story short, I'm trying to change my iOS app's rootViewController on applicationWillEnterForeground:, like so: - (void)applicationWillEnterForeground:(UIApplication *)application { MyViewController *controller = [[MyViewController alloc]…
MikeS
  • 3,891
  • 6
  • 35
  • 51
1
vote
1 answer

ASP.NET life cycle, PreRequestHandlerExecute Event

I am looking into identifying handler that will handle my request. I would like to know if request is asking for static resource (that is css,js or image files). Upon inspecting HttpContext.Request on PreRequestHandlerExecute Event i see that…
1
vote
1 answer

How to restore data when user restarts closed windows store app within 10 seconds

I've got a Windows Store App that need to save data on Suspending. Everything works fine except when The user close the app (using e.g. alt+f4 or close gesture) ... ... and then restarts the app within 10 seconds. In this case the Suspending-event…
finnsson
  • 4,037
  • 2
  • 35
  • 44
1
vote
1 answer

How do I handle the app termination when I want to close a socket?

Suppose I have three activities A,B, and C. These activities all use a socket connection to receive data. The socket connection is a Telnet connection, so it can't be closed and reconnected arbitrarily. If the current back stack is A > B > C,…
Mong
  • 21
  • 1
  • 2
1
vote
2 answers

what exactly android's home button doing?

What I do know is that the current activity get into the onPause() mode, and the home screen activity brought to front. My confusion starts with situation you can re-open the application from the recent tasks menu. so what exactly happening when…
Tal Kanel
  • 10,475
  • 10
  • 60
  • 98
0
votes
1 answer

Android application lifecycle confusion

I have an application that reuses an Activity an unknown number of times. It runs a> b1||c1 > b2|| c2 > ... If I go a > b1 > b2 > b1, my app still shows the b1 list on the screen, but if I click on it, it takes me to the corresponding b2 activity.…
0
votes
1 answer

When application bring to background,it's static instance may be cleared?

Store application global data Someone said that android will clear singleton instance when task bring to background. Is it true? I realize that when I try to kill a foreground task(by using DDMS),the application auto restart it.There must be some…
user890973
  • 947
  • 2
  • 8
  • 12
0
votes
1 answer

Application calls Begin_Request for images, css and js ASP.NET MVC 3

I have this MVC application where I declare the following routings: routes.RouteExistingFiles = false; routes.IgnoreRoute("Content/{*pathInfo}"); routes.IgnoreRoute("Scripts/{*pathInfo}"); routes.IgnoreRoute("{*alljs}", new { alljs =…
0
votes
1 answer

Android: Activity does not receive focus when dialog is dismissed in background

When i press the home button to push my application to the background, and resume it afterwards, sometimes the app UI elements do not have focus. The entire screen is sort of greyed out (brightness is decreased) and none of the on screen buttons,…
rDroid
  • 4,875
  • 3
  • 25
  • 30
0
votes
2 answers

How to automatically remove a Kubernetes pod when it does not receive TCP/UDP connections for a certain period of time?

Good morning. I need to know how can I automatically delete a pod that has not received TCP/UDP requests through the port through which its service is exposed. My intention is that if nobody accesses an application running in a pod for more than,…
0
votes
1 answer

Is a Timer disabled automatically when app resigns active on the iphone?

Playing around with Timers, and trying to make them behave right when app is sent to background, killed etc. Judging by the generated comments in xcode, you should disable/invalidate timers on resignActive/enterBackground events. However, i havent…
Mathias
  • 3,879
  • 5
  • 36
  • 48
0
votes
1 answer

WindowsAppSDK doesnt have ProtocolActivatedEventArgs

I am trying to handle protocol activation and as per docs I should handle all of that within OnLaunched method so that is what I am trying to do here, but Microsoft.Windows.AppLifecycle.ProtocolActivatedEventArgs doesnt exist. protected override…
Muhammad Touseef
  • 4,357
  • 4
  • 31
  • 75
0
votes
1 answer

How can I detect If my android application is Destroyed/Paused/Stopped without fail?

I want to update user activity status (Online/Offline) based on Application is running or not. To do so I have used LifecycleEventObserver to Observe the lifecycle inside the Application file. @Override public void onStateChanged(@NonNull…