I've finally gotten my first Android app to run without any errors,
however the TextView that I am using, is not being updated.
Here is the code and the last line is where I use setText to update my
textview.
If someone has any ideas as to why my TextView is not updating, could
you please help me out?
Thanks!
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
TextView tvIntro;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
//setup text views
this.setContentView(R.layout.main);
tvIntro = (TextView)findViewById(R.id.tvIntro);
//display game intro
tvIntro.setText("Text Adventure - By T");
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en