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
1 answer

Saving activity state with photos loaded from phone?

I've got an activity that takes photos from your gallery and put them on the screen, but when i exit the app and goes back they wont stay saved there. How do i save them in the activity when i exit and come back? Been trying with…
Dennis
  • 55
  • 1
  • 6
0
votes
1 answer

Saving state of the view

Is there an easy way to save a whole viewgroup with its data together? For example if initially i have this view and during the app run some of the view's background image changes, some views become invisible, or its' text changes, etc. How can I…
Nazerke
  • 2,098
  • 7
  • 37
  • 57
0
votes
1 answer

How to save and load the contents of multiple text boxes in C#?

I'm making my first program in C# which is just going to be a simple note making program. I currently have ten tabs, each with a text box for a title and a description. However the program isn't too useful without having a way to save the content in…
0
votes
1 answer

Not able to restore saved instance of activity

Here is my GamePlay Activity code public class GamePlay extends Activity implements OnClickListener { private boolean disableSound = false; //..... //Code Code //..... @Override protected void onCreate(Bundle savedInstanceState) { …
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
0
votes
2 answers

Android content saving

I have a weird problem. As I have asked in previous posts, I have a lot of data coming from NET in my app. The problem is that a lot of text and images r there, so though I can make the user wait wen he clicks on a list item, but I don't want to…
JaVadid
  • 7,107
  • 13
  • 42
  • 54
0
votes
3 answers

Trouble with saving fragments state after orientation is changed

I have a trouble with saving state of current fragment after changing orientation. I've got fragments with gridview that i replace in navigation process on fragments. Actions after starting app. 1) Starting "MainActivity". 2) Adding…
Denis
  • 341
  • 1
  • 5
  • 19
0
votes
1 answer

Displays editText value sharedpreference save

I have 3 EditText. When i enter some text or some numbers then click save button it goes to another Activity. Again come back on editText, the values are gone and set to android:text="value". I need to display the values after typing in editText…
user2674668
  • 117
  • 2
  • 13
0
votes
1 answer

Android application giving Can not perform this action after onSaveInstanceState Error

Hi I am developing android application in which I am using actionbar Sherlock. my application contains one main activity inside that 3 fragments with 3 tabs. My first tab showing list view if I click on list item it opens new detail activity. So…
nilkash
  • 7,408
  • 32
  • 99
  • 176
0
votes
2 answers

GUI Save Feature so that when the GUI is closed, when it reopens it has the same data visible

GUI Save Feature so that when the GUI is closed, when it reopens it has the same data visible. Right now the GUI works fine, and the logic segment is unfinished but that doesn't affect the problem at hand. Thanks lads. import java.awt.*;…
0
votes
1 answer

How to attach() and detach() instead of add() and remove() to save fragment view

I have the following code for ActionBar: private class MyTabListener implements ActionBar.TabListener { private Fragment mFragment; private final Activity mActivity; private final String mFrag; public MyTabListener( Activity…
Si8
  • 9,141
  • 22
  • 109
  • 221
0
votes
2 answers

Save State of Buttons (Whether Enabled Or Disabled), Textboxes, and JComboBox Selections in Netbeans Java?

I have 2 forms in Netbeans, 1 form will launch and the user will input information. Then if the user wants to, will open up the other jframe. The jframe that the user was working on will close. Now from the newly opened jframe, the user decides to…
Navio53
  • 591
  • 1
  • 6
  • 20
0
votes
1 answer

Cant use SavePreferences for TextView

I have a TextView. When the Activity is first created the Value of the textView is "", as in nothing. But the user can initiate some actions that can make the text="st". That works fine, once more that works fine. The problem is when I leave the…
SmulianJulian
  • 801
  • 11
  • 33
0
votes
3 answers

Saving state causes app to crash

Log is saying activity cant be paused, and a number format exception, I'm trying to save state of two edit texts that hold numbers,but both can be empty or one can be empty In my activity there are two edit texts the user can either enter numbers…
Robert
  • 1,107
  • 2
  • 8
  • 8
0
votes
1 answer

Save state for particular duration- android

I have an android requirement where i have created a form like structure have radio buttons, edit texts and so on. When the user make half entries to the form and say moves away from the page either by back button or battery off. When he returns to…
bharath
  • 953
  • 4
  • 17
  • 30
0
votes
2 answers

Do not save state for print page

For page for print, which is text only, no command link/button to click, there is no need to save states for print pages. Is there a way to tell JSF not to save states? Thanks.
Dave
  • 487
  • 1
  • 6
  • 19