I keep losing data when pressing the back button after going back from activity 2 to 1.
when passing the data to activity 2 I'm using
intent = new Intent(getApplicationContext(), secondactivity.class);
startActivity(intent);
to launch the second activity. is it possible not to lose the data without using sharedpreference when pressing the back button?