So here's my problem, whenever i press the back button, my data in listview in the main activity resets. How can i retain or save the data? Here's my code for the back button

```
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.second);

    content = (TextView) findViewById(R.id.pangalawa);
    BackButton = (Button) findViewById(R.id.back);
    Bundle bundle = getIntent().getExtras();
    content.setText(bundle.getString("extra_intent1"));

    BackButton.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            Log.d("debug", "button clicked");
            Intent intent = new Intent(secactivity.this, MainActivity.class);
            startActivity(intent);

        }
    });

}

```