Skip to content
KyleTheHack3r edited this page Jun 20, 2015 · 1 revision

Hello World

Eclipse should create the basic app structure automaticly. Here is how to create a "Hello World" app using a TextView.

  1. Navagate to: /res/layout/main.xml
  2. Replace <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello" /> with <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" />
  3. Inside android:text="" you can put anything, @string/helloworld would show the string "helloworld". That string hasn't been defined yet so it wouldn't work (There is a string tutorial in the next page).
  4. Next you need to build the app and send it over to an Android emulator (or in my case my device)
    Next tutorial: strings

Clone this wiki locally