8

When im pressing back button my list items are getting deleted

view full story
linux-howto

http://stackoverflow.com – In this activity i was trying to store data dynamically but when im pressing back button in my emulator my list items are getting deleted..... This is my main activity... public class Dynamic extends Activity { Button bt,bt2; EditText et,et2; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); bt = (Button) findViewById(R.id.nameok); et = (EditText) findViewById(R.id.name); final String input = et.getText().toString(); bt.setOnClickListener(new View.OnClickListener() { (HowTos)