android activity pass value to another activity

www.lau‮moc.irutt‬
android activity pass value to another activity
Intent i = new Intent(this, ActivityTwo.class);
AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.autocomplete);
String getrec=textView.getText().toString();

//Create the bundle
Bundle bundle = new Bundle();

//Add your data to bundle
bundle.putString("lautturi", getrec);

//Add the bundle to the intent
i.putExtras(bundle);

//Fire that second activity
startActivity(i);

//Get the bundle
Bundle bundle = getIntent().getExtras();

//Extract the data 
String stuff = bundle.getString("lautturi");
Created Time:2017-08-31 19:14:34  Author:lautturi