Android Open Source - firstcodeandroid Hello Android Activity

From Project

Back to project page firstcodeandroid.


The source code is released under:

MIT License

If you think the Android project firstcodeandroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.vjia.helloandroid;
/* w  w  w  . j  a  va  2 s .  co  m*/
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;

public class HelloAndroidActivity extends Activity {

  protected void onCreate(Bundle savedInstanceState) {
    Log.v("HelloWorldActivity", "onCreate execute");

  public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(, menu);
    return true;


Java Source Code List