Thursday, 19 September 2013

How to set string at a particular index to a textview

How to set string at a particular index to a textview

How to set string at a particular index to a textview. The below code is
not working for me.
TextView t1 = (TextView) findViewById(R.id.textView1);
String[] picname ={"abc","def"};
String data=picname[0];
t1.setText(data);

No comments:

Post a Comment