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

Unit testing application lifecycle events

I created a class that inherits System.Web.UI.Page. In that class I override some application lifecycle events like page_load and page_init. Before calling the base of those events I check session values, cookies and things like that. I would like…
Ivo
  • 3,406
  • 4
  • 33
  • 56
1
vote
1 answer

Get specific Activity from backstack

Activity A -> Activity B -> Activity C -> Activity D Let's assume we have this flow. From Activity D I want to come back to Activity B, so my stack should look after I close Activity D like this: Activity A -> Activity B I have used…
ghita
  • 2,746
  • 7
  • 30
  • 54
1
vote
1 answer

Getting java.lang.NoSuchFieldException: ON_START for Android Arch Lifecycle

I am having a library for SDK that extends both Application.ActivityLifecycleCallbacks, LifecycleObserver. In the constructor, I am registering the class as an observer for…
1
vote
0 answers

Android: Creating a new thread invokes onResume?

I guess this is a more generic question, but my Android program seems to call onResume in the main UI thread in between these two thread-creation-related function calls. This causes other invocations that I don't want to happen, and so far the only…
Cubic
  • 358
  • 1
  • 3
  • 9
1
vote
1 answer

How to redirect to home screen upon going to background or resuming to the foreground

I just have a quick question regarding app life cycles and programming in Swift. I am trying to return to home screen whenever a user goes to the background. For instance, if a user receives a call or push home button, the app should go back to the…
John
  • 137
  • 11
1
vote
1 answer

Vue.js updated hook for counting

On the user's sidebar there is a number of new unseen notifications. This number is generated by a function which counts all new notifications with the flag viewed: false from API. My question is: what will be good practice if I want to place this…
1
vote
0 answers

Is Windows onresuming and onssuspending equivalent of Android 's on resume and onsuspend

Windows app file has OnResuming and Onsuspending and I'm trying to understand if that is equivalent of android activity's OnResume and OnSuspend Basically I have a cross platform project and I'm trying to execute the same code that I execute on…
dinesh R
  • 379
  • 3
  • 11
1
vote
1 answer

Handling of Alamofire requests as iOS app is terminating

AppDelegate.applicationWillTerminate is called when the application is about to terminate. In this function, I am issuing a network request via Alamofire, to notify the server that the app is terminating. Alamofire's response handler is never…
Jack Orenstein
  • 169
  • 2
  • 9
1
vote
0 answers

How can I get child component names as they or after they initialize in Angular?

I've been studying Angular's lifecycle hooks while looking for a way to know when and which child components are loaded. I see that ngAfterViewInit() "Responds after Angular initializes the component's views and child views." Since…
Ben Racicot
  • 5,332
  • 12
  • 66
  • 130
1
vote
1 answer

HP ALM Explorer - Module - Notification to developer

Currently we are using HP ALM 11 at our company to keep track of defects and change requests! While logging a defect or change request we specify the module in which the defect was found or changes required. Is there a way to customize this tool so…
01000001
  • 833
  • 3
  • 8
  • 21
1
vote
0 answers

Callback when my app is disabled

I'm building a system app. I was wondering, is there any callback or a way to know when user disable my app? couldn't find anything about this. Hacky ways are acceptable too.
Rotem Matityahu
  • 325
  • 5
  • 16
1
vote
1 answer

Slickest way to use BroadcastReceiver in a singleton and more

I have a singleton which stores some prudent information about the user of my application. At the moment, it stores the user's login and the user's location. 1) The location is found via a Service. At the moment, the Service references my…
Andrew
  • 20,756
  • 32
  • 99
  • 177
1
vote
1 answer

Process management: To be killed or Not to be killed

An observation: While I was developing my app on android, I noticed following two lines in LogCat. These occurred because of too much memory requirements of my own app. I have read that Android can decide when to get rid of a process that are not…
ankitjaininfo
  • 11,961
  • 7
  • 52
  • 75
1
vote
0 answers

ios 9 go back after [UIApplication openURL:] programatically

I'm writing an iOS app that allows other apps to open it via openURL. Once done I want to send the user back where he came from without having him to press any button (including back). How can I do this, if its possible ? To be clear I want to…
Mr.Me
  • 9,192
  • 5
  • 39
  • 51
1
vote
0 answers

Resume app doesn't work in WinRT

I've an application (UWP) that seems to have something broken during resuming event, but I can't understand what because the debugger is not called when I try to resume it. I'm using mvvmlight and a custom frame, and I register handlers to resuming…