Assignment Listing

Everything
FLots
Assignment 1+2:
Songs need to be added, cannot share due to copyrights.
Assignment 0:
File does not exist, but text to do it is the lowest post.

Friday, April 18, 2008

Let's See If I Can Get This Right

Name:
HelloAndroid
Purpose:
This code is the Hello World which is to be used to test if the emulator is working correctly and because tradition dictates a Hello World as the first program to run.



package com.android.hello;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}

No comments: