how to transfer data from 1 activity to another in android??
help me out??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Android expertsPosted Dec 10, 2013, 2:34 AM
1st Activity...
Intent it =new Intent(1stactivity.this,2ndactivity.class);
it.putextra("X",value);
startactivity(it);
here value is the data you want to transfer.
2nd Activity...
Bundle bd=getintent().getextras();
if(bd.containskey("X"){
String a=bd.getstring("X");
}
now String a is your transfered value..do wat you want with that!!!!