android - setText() not working -
settext(), settextsize() , addview not working. shown cannot resolve symbol type.
intent intent = getintent(); string message = intent.getstringextra(myactivity.extra_message); textview textview = new textview(this); textview.settextsize(40); textview.settext(message); relativelayout layout = (relativelayout) findviewbyid(r.id.content); layout.addview(textview);
you can't use methods such add , find view id before layout inflated. verifĂ˝ setcontentview called before.
if does, @ value of message log.
Comments
Post a Comment