i just wanted to acces the second textView tag in my program. how can i do that?
thats done with this:
Using java Syntax Highlighting
- TextView myTextView = (TextView)findViewById(R.id.myTextView);
- myTextView.setText("lakshman");
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
The first line gets the second TextView (which has the ID myTextView).
The second line changed the text from the string given in your XML ("from xml file hello world") to "lakshman".
Have you tried my code posted above?


