title: (Android) How to Save activity Data (Listview)when start new activity and restart again main activity listview activity
body: <p>I am new in Android development. I want to develop a questionnaire. There are only two activities in questionnaire Main activity and camera activity. in May Main activity I have <code>ListView</code>  with <code>ListView.CHOICE_MODE_MULTIPLE</code>.+ two text field for latitude and longitude. when user give Right question i checked check box grammatically. When all Question Checked then User can capture photo so i start Camera activity on button click like this </p>
  
  <pre><code>Intent cameraIntent = new Intent(myContext,MyCAMERA.class);
  startActivity(cameraIntent); 
  </code></pre>
  
  <p>When User Confirm Photo i start Main activity gain as follow </p>
  
  <pre><code>Intent mainIntent = new Intent(this, MAINActivity.class);
  
  startActivity(mainIntent);
  </code></pre>
  
  <p>When I start back main  activity as mention above my all checkbox are unchecked (have lost data) text fields are clear. How Can i saved these data in original state when go back from camera activity My code are as follow </p>
  
  <p>Main activity </p>
  
  <pre><code>super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
  setContentView(R.layout.main);
  getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.titlebar);
  irisContext = this;
  mHandler = new Handler();
  getGUIFromXMLDoc();
  .
  .
  .
  . so on
  </code></pre>
  
  <p>all other button click function called in <code>getGUIFromXMLDoc()</code> function etc</p>
  
  <p>sorry for my poor English. I hope you can understand my question</p>
  
  <p>i have already look at some similar question on this blog but not any relevant answer or not clearly explained</p>
  
  <p>please help me as soon as possible</p>