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
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
- 69,735
- 114
- 291
- 466
3
votes
3 answers
How to ensure saving of application state on crash c#
I am very new to c# programming, so that in mind:
I have an in-memory data object with data I need to save the information when(if) my application were to crash OR closed. Is there a way to do this deterministically or reliably?
I have been looking…

Vort3x
- 1,778
- 2
- 20
- 37
3
votes
1 answer
global.asax scope and lifetime clarification
I need to implement several application-level behavior in a project I'm currently working on.
There are several things I need to get my head around:
1. Where and how do I define application level variables?
2. What is the lifetime of these…

Elad Lachmi
- 10,406
- 13
- 71
- 133
3
votes
3 answers
Android how to prevent webview reload when the screen is off/on?
I saw a lot of documentation and articles related to my questions.But I don't get any proper solutions. When I press the power button turn On/Off, The WebView would be reloaded.I don't want to reload the WebView.
What am I trying is....
protected…

karthi
- 183
- 1
- 3
- 14
3
votes
1 answer
How to recognise the way the app goes into background?
As far as I know by now there are two ways an app can move into background:
1) User pressed home button
2) The app has been left for a while without any action from user and device fell asleep
These two result in one - applicationDidEnterBackground…

Andrey Chernukha
- 21,488
- 17
- 97
- 161
3
votes
3 answers
iOS - How can I tell if a Local Notification caused my app to enter foreground?
I have code within my app delegate's
application:didReceiveLocalNotification:
method to display an UIAlertView for that local notification, whenever my app is in the foreground.
If my app is within the background when the local notification…

jimbobuk
- 1,211
- 12
- 25
3
votes
2 answers
Pushing new state for same URL in Iron-Router
Can I use Iron-Router in Meteor to push a new state onto the browser's history, without going to a new URL?
I would like to show a modal but enable to user to hide it again using the back button.

dalgard
- 3,614
- 2
- 22
- 28
3
votes
3 answers
How to set Application State value within a class?
In the App_Code folder, I created a new class in which I wanted to set the value of an Application State variable.
In order to read from Application State, I used the following code:
string text =…

Ido
- 397
- 2
- 7
- 22
3
votes
1 answer
Why is applicationState being returned as nil?
I'm trying to check the application state of my iOS app, but when I check
[UIApplication sharedApplication].applicationState
I'm getting nil. I checked that [UIApplication sharedApplication] is not nil. I'm basically just checking whether or not…

ferson2020
- 3,015
- 3
- 18
- 26
3
votes
1 answer
What Exactly Does HttpApplicationState.Lock Do?
My application stores two related bits of data in application state. Each time I read these two values, I may (depending on their values) need to update both of them.
So to prevent updating them while another thread is in the middle of reading them,…

Jonathan Wood
- 65,341
- 71
- 269
- 466
2
votes
2 answers
Is my interpretation of Roy Fielding’s REST alternative to HTTP cookies correct?
HTTP cookies violate the REST architectural style because they are independent of application state and they have no semantics, according to Roy Fielding’s doctoral dissertation Architectural Styles and the Design of Network-Based Software…

Géry Ogam
- 6,336
- 4
- 38
- 67
2
votes
2 answers
Application_Start Vs Session_Start
Actually I am new to ASP.NET and I came through these concepts.
What is the difference between Application_Start Vs Session_Start?
And also how to know how many users are currently active in our application? Is by using Application_Start or by…

HunterXxX
- 33
- 1
- 4
2
votes
1 answer
objective-c differentiate between alert message and task switcher in applicationWillResignActive
I am trying to run some code during the applicationWillResignActive when the user opens the task switcher and it has worked fine until I began using bluetooth in my app.
When bluetooth tries to connect to a device it shows an alert window asking if…

GoreDefex
- 1,461
- 2
- 17
- 41
2
votes
2 answers
How to save a state of a site without implementing my own database backend?
Suppose there is a site (a javascript app) which users regularly use and they request the ability to save their state on the site, so they can continue from where they left off.
The site has no database backend, it's all a one page javascript app…

Tom
- 7,515
- 7
- 38
- 54
2
votes
1 answer
Is it correct that onStart() is the best place to determine "user has re-opened the app"?
Let's say a user is using my Android app, I have a DialogFragment YourTanks
(it shows the various tanks you own!)
public class YourTanks extends DialogFragment implements View.OnClickListener
So again, the user is literally looking at that "page",…

Fattie
- 27,874
- 70
- 431
- 719