Questions tagged [savestate]

A bundle of state variables. Often used to sore and retrieve the application state upon a device rotation.

A bundle of state variables. Often used to sore and retrieve the application state upon a device rotation.

363 questions
0
votes
2 answers

save the state of the board for orientation

Hi I am a newbie at android and going through a tutorial for tictactoe. I need to save the state of the board so that when I change orientation the board appears with characters intact. Here are the pieces of code - The tries and turns strings are…
Beth Ann Meredith
  • 181
  • 1
  • 4
  • 10
0
votes
1 answer

Save dynamic control state when clicking on save button

I have a small program that generates four dynamic buttons on load in a flowLayoutPanel1 and a static save button. My aim is to save the dynamic button colors so that when the form is reloaded or opened again the colors of the dynamic buttons are…
Tacit
  • 890
  • 6
  • 17
  • 42
0
votes
2 answers

How to save/Restores states of Views in Fragments on TabChange

May be duplicate question. but i cant find the solution of my problem I have a TabHost with 3 Tabs. let say tabA, tabB, tabC. I do lots of view changes like button text changes, editText changes in tabC when i switch to another tab (i.e either tabA…
0
votes
1 answer

Whats the LifeTime of Application class?how long will it persist the object

i have a Object obj where i need to save the state of this object for long time, so if i extend application class what is the Lifetime of it? When the user in the current activity and gets a call, after long time the user resumes the activity what…
Goofy
  • 6,098
  • 17
  • 90
  • 156
0
votes
0 answers

Custom ListView doesn't save it's state

I was using standart android ListView with simle_list_item_multiple_choice item layout and custom adapter. It saved it's stated on pause and restored on resume. But after few days of working on I've implemented SectionIndexer,…
Lingviston
  • 5,479
  • 5
  • 35
  • 67
0
votes
0 answers

FATAL EXCEPTION saving/restoring instance for Android HTML application state

I am attempting to grasp the simple aspect of saving an Android application and restoring it on resume. I have surfed all over for the answer but nothing works. Since I am having trouble with the app that I am developing I have boiled it down to…
Mark A. Rupert
  • 527
  • 7
  • 15
0
votes
1 answer

native-app is restarting after minimizing to background

I've got a simple native application for debugging, only displaying a triangle slowly changing the color. Now, when i press the home-button and put my app into background and then start it again, it is completely restarted. How can i resume the…
bricklore
  • 4,125
  • 1
  • 34
  • 62
0
votes
1 answer

Save and get data from fragments

I have an ViewPager with 4 fragments, at the last fragment I want to make a validation and save the values that was inserted in the previous fragments. I tried to override the onSaveInstanceState and save a Bunble with the data but the method not…
Ovi
  • 60
  • 8
0
votes
2 answers

Save the State of RadioButtons in ArrayAdapter of Type class

I'm having troubles saving the state of a selected radiobutton when the user hits the back key and then comes back to the activity. My class extends ListActivity. Here's the onCreate and onBackPressed() methods of the class that creates the…
Navio53
  • 591
  • 1
  • 6
  • 20
0
votes
1 answer

Serialize a Form along with all its data in C#

I'm guessing that the best way to do this is by using XML. Here's the issue, tho: Hero hero; PictureBox heroPB; Dictionary pokedex; Boss boss; PictureBox bossPB; Attack attack; PictureBox attackPB; …
OFRBG
  • 1,653
  • 14
  • 28
0
votes
2 answers

Save state of a container (LinearLayout)

I have two fragments. In first fragment I have a container static (LinearLayout) that to the view of fragment. In this container i do a inflation of several views. I change to a second fragment, but when i return to the first fragment the views…
0
votes
1 answer

Save fragment state when change of fragment A to fragment B

I have a fragment A and a fragment B. In fragment A i do a inflation of a some views to inside a container. Then i change to a fragment B, and when i turn to fragment A, the views that inflate are gone and i lost the data inside this views. Anyone…
Ricardo Filipe
  • 435
  • 4
  • 8
  • 24
0
votes
2 answers

how to save state of dynamically created editTexts

I'm stuck at how to save the state of my EditTexts on screen orientation. Currently if text is inputted into the EditTexts and the screen is orientated, the fields are wiped (as expected). I am already calling onSaveInstanceState and saving a…
0
votes
1 answer

Saving vim state with mksession will not save Ctrl-6 state

When I save my vim session using :mksession mysavedsession, it saves everthing that is relevant to me except for the swapped buffer opened in each of my vim windows brought to view by Ctrl-6. Any easy solutions to this?
eplictical
  • 583
  • 1
  • 6
  • 16
0
votes
3 answers

BlackBerry save checkbox state in persistent store

I have a login page (username,password fields) that has a checkbox 'Remember me'. If the checkbox is selected, the application is required to remember the username & password for next login. That is done and working fine. However I am finding it…
Sarah
  • 1,895
  • 2
  • 21
  • 39