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

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -