What is the best way to learn Android? I'm reading Rogers's at al.'s book Android Application Development. However, as I tried the following code, nothing outputs except a mobile phone:
package org.qwerty.com;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloWorld extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}
I tried also search for the Dalvik Debug Monitor http://stackoverflow.com/questions/1108820/android-emulator-output but I couldn't find the option where I can open my hello android project.