1

Can't set Text to Textview

view story
linux-howto

http://stackoverflow.com – I am learning to develop apps for android from a book and after following the instructions I end up with the following. When I rune the app, however, the text from the setStartUpScreenText object is not displayed. MainActivity.java: protected void setStartupScreenText(){ TextView planetNameValue = (TextView)findViewById(R.id.DataView1); planetNameValue.setText(earth.planetName); } MainActivity.xml <TextView android:id="@+id/DataView1" android:layout_toRightOf="@+id/TextView1" android:layout_marginLeft="36dip" android:layout_width="wrap_c (HowTos)