Questions tagged [application-state]

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

99 questions
1
vote
1 answer

How to access the Application[] collection from a WCF web service

I used to use .ASMX web services, but I'm trying to move to WCF because it's the latest newest thing, and it's supposed to be better. Anyway, what I'm wanting to do is really really simple : create a webservice that empties the Application…
user44701
  • 85
  • 1
  • 10
1
vote
2 answers

Server side state management in Windows Azure

I'm working on a distributed application that runs on Windows Azure, but I'm new of this kind of environment. I have a question about server-side state management. Where should I store global almost static data? Because it is a distributed…
Sara
  • 121
  • 6
1
vote
1 answer

Listen for application will enter foreground on WatchKit?

On iOS, I have several ways to know when the user launched my app from the home screen when the app was backgrounded: Implement the - applicationWillEnterForeground: in my app delegate. Listen to the…
Senseful
  • 86,719
  • 67
  • 308
  • 465
1
vote
1 answer

Custom UIView when receive push notifications and the app is active iOS

I have implemented push notifications in the app, and they work well. But now I'm trying to figure out how to implement a custom view when you receive a push and the app is active. i would like to replicate something like Instagram do, (see…
Ilario
  • 5,979
  • 2
  • 32
  • 46
1
vote
2 answers

How to add a System.Xml.XmlDocument type to applications state

I am using Asp.net 3.5 and C# I have to add an XmlDocument to my application state so that everytime my application doesnt access the XML file on my filesystem, I will add this at the Application_Start() function in Global.asax.cs I am adding this…
Umair Jabbar
  • 3,596
  • 5
  • 30
  • 42
1
vote
1 answer

Is there any scenario that can cause ViewDidLoad to be called before didBecomeActive?

I know it's sounds silly but just to clear a point. Is there any chance that view did load will be called before didBecomeActive ? Is it totally impossible ? EDIT We have a crash that happens when user is coming back to the app from the background…
shannoga
  • 19,649
  • 20
  • 104
  • 169
1
vote
3 answers

Effect of storing data using SharedPreferences in onpause android

I am storing my data structure values in SharedPreferences in onPause() methode of activity The SP.xml file size becomes 25K , will there be any effect of doing this storing in onPause() method if yes then What should I do to Store may…
Tushar
  • 1,122
  • 1
  • 13
  • 28
1
vote
1 answer

Saving contents of ApplicationState in ASP.Net (MVC)

I have an internal app used to edit XML files on disk. The XML files are loaded into an object model which is stored in ApplicationState. I need to save this data. The one option is to do this every time the user changes some data. However, this…
Saqib
  • 7,242
  • 7
  • 41
  • 55
1
vote
0 answers

Is it a good practice to use an Singleton to Application State object in MVC 4?

Recently I have been busy writing an MVC 4 Website and I need to hold some values across all the sessions so I deciede to use the "Application State" object. Because the MvcApplication class which rests inside the Global.asax.cs is of type…
Rojan Gh.
  • 1,062
  • 1
  • 9
  • 32
1
vote
0 answers

How can I get the current state of another android application as a bitmap?

Is it possible on android to get a Bitmap object (regular size, not a thumbnail) which represents the current state of another application running in the background, or a Bitmap object which represents the current state of an activity in the…
1
vote
1 answer

ASP.net beginner really confused about StaticObjects and how to declare it

I'm a beginner in ASP.net, i did some research about Application state. I know about declaring new application state inside the Application_start event. But when i looked inside MSDN library (which is not helpful at all unfortunately). I found this…
Rafael Adel
  • 7,673
  • 25
  • 77
  • 118
1
vote
1 answer

The application variable in ASP.net(c#).

I have a problem with the application state in Asp.net. I need a list of Strings that i would use in different forms in the same application. Here I add the list: Application.Add("users", new List()); In a new form I try to add a string…
Borut Flis
  • 15,715
  • 30
  • 92
  • 119
1
vote
1 answer

how to access application.get from generic handler

I have a global.asax in which I define some variables that I want to be available throughout the application, such as a class to handle certain database requests. In an aspx page, I can access these variables/objects using for example in Visual…
Fritz45
  • 752
  • 1
  • 10
  • 23
0
votes
1 answer

storing and updating a 2d array in application state in Asp.Net MVC 3

I plan to create a simple browser game based on ajax requests. I have a map that consists of 10x10 divs on the client. On the server I have an array[10,10] that represents the state of my divs, so for example if the client clicks on the certain div,…
Alan Budzinski
  • 811
  • 3
  • 16
  • 33
0
votes
3 answers

Refreshing iOS application or checking for connection in advance

I'm having some issues determining what the proper application design pattern is for initially alerting users that they need to enable an internet connection. I have an iOS app that requires an internet connection due to the wide range of data that…
Project707
  • 502
  • 6
  • 13