Android Tutorials - Herong's Tutorial Examples - Version 3.02, by Dr. Herong Yang
Outdated: Rebuild the Debug Binary Package
This section provides a tutorial example on how to modify the resource file and rebuild the debug binary package of the HelloAndroid application.
This tutorial was based on Android SDK R17 with Android 4.0.3 and left here as a reference.
Whiling running "HelloAndroid" on the emulator, I noticed that the message string does not match what is coded in the Java file!
What happened is that the message string on the TextView defined in the Java file, .\src\com\herongyang\HelloAndroid.java:
... TextView tv = new TextView(this); tv.setText("Hello, Android"); ...
is re-defined in the resource file, .\res\layout\main.xml:
... <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Hello World, HelloAndroid" /> ...
See the next tutorial on how to modify the resource file and re-build the HelloAndroid application.
Last update: 2012.
Table of Contents