Use this tag for questions related to the Application State; an application can be at the active state, for example.
Questions tagged [application-state]
99 questions
2860
votes
35 answers
How can I save an activity state using the save instance state?
I've been working on the Android SDK platform, and it is a little unclear how to save an application's state. So given this minor re-tooling of the 'Hello, Android' example:
package com.android.hello;
import android.app.Activity;
import…

Bernard
- 45,296
- 18
- 54
- 69
48
votes
6 answers
Does asp.net MVC have Application variables?
I am busy converting a web application to MVC and have some information saved to Application variables used across multiple tenants/accounts to make things a bit more efficient.
I realise the point of MVC is to keep things as stateless as possible,…

Mark Redman
- 24,079
- 20
- 92
- 147
41
votes
1 answer
ASP.NET Application state vs a Static object
if i have a standard ASP.NET application, is there any difference between making an object static as opposed to putting the object instance in the Application state?
from my understanding, both objects exist ONCE for the app domain.
Secondly, what…

Pure.Krome
- 84,693
- 113
- 396
- 647
15
votes
3 answers
"persistent state" vs. "current state"
Attempting to decide (for my application) what to save in onPause() and what to save in onSaveInstanceState(), I combed the entire SO for hints and clear guidelines.
If I understand correctly, onSaveInstanceState() is best for saving "runtime…

ateiob
- 9,016
- 10
- 44
- 55
12
votes
3 answers
Confusion between background vs suspended app states
I am bit confused about these two states. Following is my understanding;
when app is in background and if you have "Application does not run
in background" set to NO in App plist file then App continues running
in background. In suspend mode…

Paresh Masani
- 7,474
- 12
- 73
- 139
10
votes
3 answers
iOS: How to tell when an app is going to suspend?
I want to know when my app is going to be suspend? The state of not being active for a certain amount of time or being terminated by the user. I need this because I need to close a connection a web socket. I want to keep the connection alive while…

Jason Silberman
- 2,471
- 6
- 29
- 47
9
votes
4 answers
Access Application State from outside a Page
I'm trying to access the Application State from a utility class in the web application but I'm not sure of the best way to do it. I looked for a static member but there is none of use (I was thinking somewhere along the lines of…

CyberDude
- 8,541
- 5
- 29
- 47
8
votes
2 answers
where is session state, application state in page life cycle?
where is session state, application state in page life cycle?

sly_Chandan
- 3,437
- 12
- 54
- 83
6
votes
2 answers
Is application variable will be common for both classic asp and asp.net?
Our application is combination of classic asp and asp.net. Can we access same application variable in classic asp which is defined in asp.net .
user5268165
5
votes
3 answers
How best to generate a random salt for a Web Site?
i'm wanting to generate a random salt value and put it into the Application state.
Now, i'm using a web farm, so the Application state will be different per machine. I don't want to purchase distributed state farm apps, either.
So .. what are some…

Pure.Krome
- 84,693
- 113
- 396
- 647
5
votes
2 answers
in IIS, what's the difference between "application" and "session"?
A Session is per browser (determined via cookies), but when does an "Application" start, and end, and how does IIS know know when a request is a part of the same same "Application" instance (if not done via cookies the same way that sessions are)?

Alexander Bird
- 38,679
- 42
- 124
- 159
4
votes
1 answer
Receiveing push notifications while in different states
I know this topic has been discussed however i keep seeing conflicting stements and im just getting more and more lost.
I just want to know what happens when my app is in the background and it receives a push notification.
I know that:
While in…

Richard
- 41
- 1
- 3
4
votes
2 answers
How to manually call onSaveInstanceState()
I am writing a program where I call multiple layouts on the same activity but then i noted that when i switch layouts, the changes made before the switch are not restored and onSavedInstanceState(Bundle outState) is not called. I have tried to…

kbluue
- 369
- 1
- 5
- 20
4
votes
3 answers
Silverlight and Application State
I have a Silverlight app that always needs to know what Customer (domain object) is currently loaded. There can only be one loaded at a time. If the Customer is null, no Customer is loaded currently. Or you exited a Customer. I'm going to have 3…

BuddyJoe
- 69,735
- 114
- 291
- 466
4
votes
1 answer
How to handle application state with RxSwift
I am new to RxSwift and whole concept of RX and I would like to know how to handle global application state fetched from remote server by RxSwift.
Let's assume I need to fetch JSON and parse it to list of objects to show it in table view but also I…

Michal Raška
- 51
- 4