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

How and when iOS kills an app which is in background for long time?

I want to know what happens when the app comes to foreground after being in background for long time? How basically iOS works to free up memory and how it kills the app.
veebha
  • 47
  • 1
  • 9
1
vote
1 answer

What method is ran when user clears "Recent Apps" in Android

I have a music player with a noncancellable notification. In my onDestroy, i have a clearNotification method. However when I clear the app by holding the home button and clear recent apps, the music stops but the onDestroy method is not ran because…
Web Development
  • 421
  • 1
  • 3
  • 15
1
vote
3 answers

Development life-cycle for making an application?

I have an idea that I want to make into an application (I have a C/C++, C#, and Java programming background so I will be developing in QT Creator for cross-compilation's sake). So now I am asking you senior developers, what should I do next? I know…
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
1
vote
1 answer

track application stack change event wp8.1

I am new to WP8 development, I need to know is there a way to trace the application stack change (check if application comes from deactive (dormant) to active (tombstoned) state) event in wp8.1 same as android gives us. If it is how we can trace…
user1241984
1
vote
2 answers

Execute a Windows Phone 8.1 Application after deactivation

I know about the Windows Phone 8.1 Applications lifecycle: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff817008%28v=vs.105%29.aspx But, is it possible to keep active the application when it is not used (after deactivation)? Is it…
smn.tino
  • 2,272
  • 4
  • 32
  • 41
1
vote
1 answer

Correctly remove object (with code example) iOS

Does the following code (removeViews) correctly remove the reference to the objects, i.e delete them, so I do not keep making more Views when the method createViews is called. createViews creates the views and removeViews sets them to nil. Note:…
DevC
  • 6,982
  • 9
  • 45
  • 80
1
vote
1 answer

Why does my iphone app not receive background fetch events after being terminated?

I've built a small ios app which perform periodic updates. I'm registering my app for background fetches with a callback handler. When app goes background I'm continue to receive callbacks over the time (every 20-30 minutes, event days later). Once…
Mando
  • 11,414
  • 17
  • 86
  • 167
1
vote
1 answer

Android Need event Foreground and Backgorund

Hi Friends i am making an application in which i need to show something when user goes in background and again when user comes in foreground. So i Need to get an event when our app goes in background and again when app comes in foreground working in…
Love Garg
  • 406
  • 1
  • 5
  • 17
1
vote
0 answers

Change UI immediately after receiving UIApplicationWillResignActiveNotification

I need to make changes in my UI immediately when I receive UIApplicationWillResignActiveNotification. Here is what I do: [[NSNotificationCenter defaultCenter] addObserver:self …
1
vote
1 answer

PHP: visualize your app workflow and function to function relation

i'm searching for a software that would help me visualize my application workflow, and function to function relation. i'm using codeigniter, and my app is growing bigger and bigger ever day, and as i'm working alone. i'm starting to get…
Zalaboza
  • 8,899
  • 16
  • 77
  • 142
1
vote
4 answers

onBackPressed() override

This is the structure of my application: Activity A is a ListViewActivity with a button to start B activity. In the B activity after completing a form is there a button to start the C activity. The C activity save the setting and create a new…
TWONEKSONE
  • 3,918
  • 3
  • 19
  • 26
1
vote
2 answers

Is overriding Application class and access it through static variable safe?

In my android application, I'm overriding Application class like below. public class MyApplication extends Application { private static MyApplication instance = null; @Override public void onCreate() { super.onCreate(); …
Onur
  • 5,617
  • 3
  • 26
  • 35
1
vote
1 answer

what happens to asp.net web application (asmx ws) on IIS 6.0 when it's idle for hours or so?

I have an asmx web service and I load bunch of system data to internal data structures. This system data is used to check the validity of requests. However when there is no requests for say 3 hours (maybe less) the initializations are done again.…
char m
  • 7,840
  • 14
  • 68
  • 117
1
vote
1 answer

How to detect/intercept application life cycle events without using the conventional activity life cycle events

I wanted to know are there any legal ways to get information about the activity/application life cycle events from a back ground service / Thread . Actually , I have a library project where i want to intercept these calls so that i handle the…
1
vote
1 answer

What is the proper way to launch a metro app if it is terminated by the operating system?

If the app is terminated by the system I want the app to go back to whatever page the user was using last and let them pick up where they left off. The problem I'm having is that 1. My app has 2 pages, a data page and a login page, so how can I…
Orch
  • 887
  • 2
  • 8
  • 21