Questions tagged [state-saving]
57 questions
0
votes
1 answer
Saving data in a command-line game, no database [Ruby]
I'm making a simple command line game with Ruby and I'm having trouble saving some information without a database/HTTP dynamic.
For example, let's say I have to make a sandwich (in the game). I am presented with an array of ingredients to choose…

San Diago
- 1,030
- 1
- 12
- 26
0
votes
1 answer
ios restore state for google maps sdk GMSMapsView
I have developed an ios7 application with SWRevealViewController special for saving and restoring states (see: https://github.com/rochbu/SWRevealViewController). Now my app returns to the state where I left it - very nice so far. The problem is that…

Freddy
- 1,022
- 9
- 16
0
votes
1 answer
How to force JSF clean its State Manager?
More specifically, this is AjaxStateManager in Richfaces 3.1.HomeMadePatch/JSF1.1. I am not responsible for these technological choices, and I already read related questions like 1, 2, 3 which basically advice to upgrade versions or switch for a…

Aldian
- 2,592
- 2
- 27
- 39
0
votes
3 answers
Which data types in java share state?
I was going through primitive data types in java. It mentions that primitive values don't share state with other primitive values.
It makes sense to me but I was wondering if someone could give me an example where a data value actually share state…

aamir
- 3,753
- 4
- 23
- 34
0
votes
0 answers
Equivalents of super.onSaveInstanceState() and super.onRestoreInstanceState() to use in onPause() and onCreate() respectively to save view data
super.onSaveInstanceState(outState); and super.onRestoreInstanceState(savedInstanceState); automatically saves views, but onSaveInstanceState and onRestoreInstanceState aren't called always. I need equivalents of above two super calls to use in…

Nazerke
- 2,098
- 7
- 37
- 57
0
votes
3 answers
How to save settings of the game?
I'm developing simple android game with a menu and 3 stages of game. Currently I'm working on saving game state. In the menu activity user can change some settings such as audio(on/off), ads(on/off), etc. When the user presses "new game", therefore…

Nazerke
- 2,098
- 7
- 37
- 57
0
votes
3 answers
saving user state in MVVM application
I am creating a MVVM application and the basic system allows a user to register, login, and add data to a database.
There are multiple users, so I want the system to be able to maintain the user's credentials/state after they login and have the…

RebeccaD
- 143
- 5
- 12
0
votes
1 answer
Saving Activity state involving multiple activities. Use saveInstanceState or Preferences?
So I have a start game layout that is in landscape mode. When I click on button a or button b, a new activity starts depending on which button I click. When I click button a, I can add pictures to an imagebutton and edit the names of players. (I'm…

j_vega19
- 228
- 1
- 2
- 11
0
votes
1 answer
corona sdk state saving using json to return variables
Hi I am building an app using corona sdk which is an interactive ebook. What I need to be able to do is save current variables and then load an external file on startup containing the scene the user is on as well as the choices already made. I store…

user1728717
- 11
- 2
0
votes
1 answer
State saving, navigation controller stack saving and gesture recognizer on the navigation bar
I'm loading my view controllers like this:
NSArray *viewControllerNames = [NSArray arrayWithContentsOfFile:path];
for (NSString *viewControllerClass in viewControllerNames) {
NSString *filePath = [self…

Devfly
- 2,495
- 5
- 38
- 56
-1
votes
1 answer
How can I persist or save states in reactjs?
I am currently working on a single page application using ReactJS.
I have to use local storage to save states but it's not safe and secure.
I want to know if there is any possible safe way to use local storage for states?
-1
votes
2 answers
Android studio saving data that extends Button
I'm working on a minesweeper game on android studio.What I'm trying to do is to save the state of the game if the user closes the game while playing.I'm having trouble using parcelable on a object that extends Button Like this:
private final…

Froob
- 193
- 1
- 3
- 11