android display string

icecreamvn

New Member
I am trying to pass a string from one activity to another. I retrieved the information like this:\[code\]Intent openReadMail = getIntent();String readfrom = openReadMail.getStringExtra("from");\[/code\]Now I want to display this string on screen. I this xml TextView element:\[code\] <TextView android:id="@+id/from" android:layout_width="match_parent"/>\[/code\]but I can't convert the string to a textview, is there a better way of doing this? thanks for your help guys!
 
Back
Top