http://developer.android.com/guide/tuto ... world.html
When I ran it, I did not get the Hello World word on the Emulator's screen.
It showed the Android word in the center of screen.

HelloWorldText.java
Using java Syntax Highlighting
- package com.example.HelloWorldText;
- import android.app.Activity;
- import android.os.Bundle;
- public class HelloWorldText extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- }
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
main.xml
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- >
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Hello World"
- />
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
My environments:
Android SDK 1.5
Eclipse Version: 3.4.2
Thanks,
Brew


