Questions tagged [application-state]

Use this tag for questions related to the Application State; an application can be at the active state, for example.

96 questions
2715
votes
35 answers

How to save an activity state using 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
  • 43,502
  • 18
  • 52
  • 69
46
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
  • 22,537
  • 19
  • 88
  • 134
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
  • 78,923
  • 102
  • 356
  • 586
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…
9
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,352
  • 6
  • 26
  • 45
9
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…
AlienMonkeyCoder
  • 7,314
  • 11
  • 69
  • 138
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,095
  • 12
  • 48
  • 78
7
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
  • 7,397
  • 5
  • 24
  • 43
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
  • 78,923
  • 102
  • 356
  • 586
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
  • 33,259
  • 40
  • 118
  • 154
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
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
  • 64,613
  • 107
  • 281
  • 451
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…
4
votes
3 answers

Preserving ASP.NET Application State Across Restarts

Any good way to preserve ASP.NET Application state across restarts? I want to be able to set some values restart the app and have them still be there. I want to primarily do this for small "throw-away" test web apps that don't even need a…
BuddyJoe
  • 64,613
  • 107
  • 281
  • 451
1
2 3 4 5 6 7