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

How to save android acvitiy history and retrieve at later time?

How do I save previous activity and have that update into a listview so that when a user launches the app at a later time he can click on a menu option called history which will bring a listview of the last few activities. Let's say the listview…
K D
  • 115
  • 1
  • 3
  • 12
0
votes
3 answers

iPhone app saving state - nsmutableindexset and nsuintegers?

I'm newer to Xcode development and am trying to save the state of my app which tracks multiple index sets, integers and strings. I've tried a lot of different code and haven't been able to get it to work saving to a .plist. What is the best approach…
rossi
  • 133
  • 3
  • 10
0
votes
1 answer

Android tutorial Button "Save" the changes in Ringtone, Notification Volume

Doese anyone know of a tutorial on how to make a Volume Controller like this one (with a Save button at the bottom). This is my problem, how to make that "Save" button. I can create all the volume SeekBars, but unfortunately when I make changes on…
0
votes
1 answer

iOS Save State when device turns off or battery drains

I have an app that syncs records created on the phone with a web-server. When app does not have internet connectivity, it store everything locally (Core Data) and then syncs it when internet is available again. Now a user has come up with a valid…
Dev
  • 6,207
  • 4
  • 27
  • 32
0
votes
1 answer

DateTimePicker VB.Net save value on close

I have 2 Forms.Form 1 is main and holds a button that should show msgbox with date that is selected on datetimepicker which is on Form 2. Date shown on msgbox should be in short format (dd.MM.yyyy.). On program start datetimepicker should be reset…
msosa
  • 5
  • 1
  • 4
0
votes
4 answers

Android SaveInstanceState - Understanding

From this page of Android SDK The default implementation takes care of most of the UI per-instance state for you by calling onSaveInstanceState() on each view in the hierarchy that has an id, and by saving the id of the currently focused view (all…
Kevin Rave
  • 13,876
  • 35
  • 109
  • 173
-1
votes
1 answer

How to restore when activity is destroyed or paused?

Okay so here is what i am trying to do..... new AsyncTask(){ @Override protected Void doInBackground(Void... arg0) { try { Thread.sleep(1000); …
tj walker
  • 1,333
  • 3
  • 15
  • 18
-1
votes
2 answers

How to save Setting for next time?

I am working on my application and I want to change the color of their UI with the click of button.....Like this.... Button change=findViewById(R.id.change_UI); change.setOnClickListener(new View.OnClickListener() { @Override public…
Vipul Chauhan
  • 189
  • 4
  • 19
-1
votes
1 answer

How to save a feature (i.e. setting like SFX or Music) across all pages in Android Studio?

I am wondering how to save a feature across all pages when flipping between them in Android Studio. I am trying to make a rigged dice rolling app that I want a setting to stick with the app until I turn it off. Current code for the page where I…
Sam Biner
  • 1
  • 3
-1
votes
1 answer

Saving/loading an Android layout with previously programmatically added buttons

I have a very simple question about loading layout in main activity. I have a simple layout defined in activity_main.xml which is loaded in MainActivity's OnCreate() using setContentView(R.layout.activity_main). Then on a button click, I add…
-1
votes
1 answer

iOS//Provisioning Profiles//Old Data&New Data

I've never been using Xcode to sideload apps on my iPad instead,I used Cydia Impactor. We all knows that the limitation is every free Apple developer account comes with a 7-days provisioning profile. In other words, after a week, you will need to…
-1
votes
3 answers

UINavigationController Push Load View Each Time

I Have UINavigationController and it's root view is UICollectionViewController, Each time i tap on cell in this UICollectionViewController pushes another UICollectionViewController which have a UITextFiled The Problem is when i go back to the root…
-1
votes
1 answer

onSaveInstanceState not working

I am trying to save the type of map that the user selected through the menu so the type of map remains even if the device will be rotated or the activity will be suspended for a few moments. This is what I did but it doesn't seem to work. Please can…
Alex Simion
  • 93
  • 1
  • 14
-1
votes
1 answer

How do I save the contents of my ListView when the screen is rotated or the back button pressed

I am new to java and I could use some help. In the following program, when I rotate the screen the ListView disappears. When I click back, then pull the app back up both of my TextViews and my ListView are cleared. I read up on this some and from…
-1
votes
3 answers

Saving State Of Activity Android

How can I save state of activity that setBackgroundResource and setTextColor I have set up in if sentence remains changed when I start activity again? if (cases == 1) { TextView layout = (TextView) findViewById(R.id.textView1); …
ribicincc
  • 7
  • 6
1 2 3
24
25