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

What is the term for two or more sets of source code in development that make changes to the same module?

I'm trying to brainstorm and research different strategies/policies for different features that touch the same piece of code when building into a testing environment. I'm sure there's a term out there but not quite sure what it is so that I can…
0
votes
1 answer

Windows Phone 7: Establishing which page is being activated during the Application_Activated event

I am following the general best practice principles of restoring my persistent and none persistent state and objects when a tombstoned app is re-activated. Which can be found in this very good Microsoft article here The samples only show a simple…
NER1808
  • 1,829
  • 2
  • 33
  • 45
0
votes
2 answers

Loosing MainActivity on Background

Everytime the application go in background, and the RAM start filling out, the application start loosing variables (if im not wrong, this is the normal behavior of Android, it loose the instances of variables) When I bring back the app from…
0
votes
0 answers

Get coordination and city at app launch with Swift

What I'm trying to accomplish is, getting the user's coordination and city at app launch, once the app is in foreground, there is a label display the city. I'm using the following code to get such information. When I call the location service from a…
f_qi
  • 689
  • 8
  • 21
0
votes
1 answer

How to catch the event caused by clicking on the top-right X of an android activity

I'd like to know what event Android issues when clicking on the top-right X of an Activity. I've tried onStop() and onDestroy(), but they don't get called at all. Please note that I'm using AppTheme.NoActionBar as app theme, and my Activity extends…
D. Wang
  • 165
  • 1
  • 9
0
votes
1 answer

is Android Application remain alive after backpressed default behavior

I have Application class with a static object like this: public class FootballApp extends Application { //....... public static Membership membership; @Override public void onCreate() { super.onCreate(); membership = new Membership(); …
Raafat Alhmidi
  • 1,106
  • 12
  • 18
0
votes
1 answer

Android Activity Testing Example Has Confusing OnPause Expectations

I'm trying to understand the Activity Testing tutorial on the Android site. One of the tests sets a spinner in the SpinnerActivity example, forces a pause, then resets the spinner, forces a resume, and then verifies that the application properly…
Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
0
votes
2 answers

How to implement start, stop and error methods in play framework(2.5.x)

I am very new to play framework. I am trying to do something when my application will start and also do something when application will stop. I started searching for the entry and finish points and found out that in the 2.0 documentation there is…
0
votes
1 answer

Android live wallpaper doesn't seem to quit?

I've tried running a variety of live wallpapers. When I set a different one to be live, the old one still shows up in the adb shell when I type 'ps': app_37 12107 1870 125356 16932 ffffffff afe0da04 S fishnoodle.aquarium_free app_50 12196…
Stuart Axon
  • 1,844
  • 1
  • 26
  • 44
0
votes
0 answers

Creating Local Notification when terminating Application

In my app, i should show a local notification whenever i am terminating app by double clicking home button. I have tried this one using applicationWillTerminate(application: UIApplication) method. some times it showing notification and some some…
0
votes
1 answer

iOS application goes to dashboard when it comes from background to foreground?

I am experiencing a problem with switching app from background to foreground. It is a tab bar based app. If i launch the app immediately it redirects to the view controller where i left off. but if I launch it after 5/10 min(basically after some…
jailani
  • 2,260
  • 2
  • 21
  • 45
0
votes
1 answer

startActivityForResult triggers TRIM_MEMORY_UI_HIDDEN thinking it went to the background

How do I prevent using startActivityForResult in an activity from thinking it went to the background in the ApplicationLifecycleHandler?
Tim Nuwin
  • 2,775
  • 2
  • 29
  • 63
0
votes
2 answers

which life cycle function should i call after going out of my app and come back

i have an app that allows the users to make a phone call, when the user click on a button on my app, i open the phone app, then the user may or may not call. in any cases, the user will (should) come back to my app, in that case, i want to do some…
sarah
  • 1,201
  • 1
  • 9
  • 29
0
votes
1 answer

Application Lifecycle Event Not Fired when Server.Transfer

I have a custom rewrite module and when specific query string parameters are passed i need to be able to call a server.transfer and not a response.redirect due to adserve software and tracking in the Init Event of the RewriteModule i register the…
stack72
  • 8,198
  • 1
  • 31
  • 35
0
votes
0 answers

How to achieve a 'hidden' communication between 2 windows phone 8.1 apps

I am developing 2 apps in WP 8.1. One should send requests(I call it "sender") and the other one should answer on them (I call it "receiver"). Both will be installed on the same WP device. The perfect solution will be the one that user will not see…