android - I was trying to send data from one activity to next activity but when it goes to next activity it is only diplaying toast not data -
i trying send data 1 activity next activity when goes next activity displaying toast , no data
tv=(textview)findviewbyid(r.id.textview1); result=(textview)findviewbyid(r.id.result); bundle data=getintent().getextras(); string marks=data.getstring("totalmarks"); result.settext(marks);
ensure send data through intent that:
intent.putextra("totalmarks", "string send"); and retrieve :
intent.getstringextra("totalmarks"); be careful, key case sensitive!
Comments
Post a Comment