I want the way or the code e.g. to store the value of EditText in the temp variable so when I redirect the activity at that time it stores the value in the temporary variable. When I move back to the activity I can store back it to the EditText.
Share
SharedPreferencesmay be the easiest way in your case. This is designed for storing a relatively-small amount of data (ballpark practical maximum around 50-100 values) in classic key/value format.http://androidandandroid.wordpress.com/2010/07/25/android-tutorial-16/
http://developer.android.com/reference/android/content/SharedPreferences.html