Biyernes, Enero 25, 2013

Java Source Code


Java Source Code

The Java code is what drives everything. This is the code that ultimately gets converted
to a Dalvik executable and runs your application (see Example 3-5).



Example 3-5. HelloWorld.java

package com.marakana;
import android.app.Activity;
import android.os.Bundle;
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);
}
}


Walang komento:

Mag-post ng isang Komento