problem in running the Emulator

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Postby WarrenFaith » Wed Apr 08, 2009 9:43 am

i just wanted to acces the second textView tag in my program. how can i do that?

thats done with this:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. TextView myTextView = (TextView)findViewById(R.id.myTextView);
  2.  
  3. myTextView.setText("lakshman");
Parsed in 0.031 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?
WarrenFaith
Moderator
Moderator
 
Posts: 227
Joined: Fri Mar 13, 2009 10:59 am
Location: Berlin, Germany

Top

Postby lakshmanraob » Mon Apr 13, 2009 6:00 am

hi warren,
With your code everything is working fine. sorry for the late reply

Thanks for your wonderful support
lakshman
lakshmanraob
Junior Developer
Junior Developer
 
Posts: 18
Joined: Mon Mar 23, 2009 8:11 pm

Top
Previous

Return to General

Who is online

Users browsing this forum: No registered users and 5 guests