Yup, definitely did this before... but where did I put it?

This commit is contained in:
Dan Buch 2012-02-20 09:15:08 -05:00
parent 012ea36add
commit 490eb04c39
3 changed files with 9 additions and 6 deletions

2
.env
View File

@ -1,2 +1,2 @@
export ANDROID_HOME="$HOME/opt/android-sdk-linux" export ANDROID_HOME="${ANDROID_HOME-"$HOME/opt/android-sdk-linux"}"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH" export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"

2
HelloAndroid/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
bin
gen

View File

@ -2,14 +2,15 @@ package com.mbh;
import android.app.Activity; import android.app.Activity;
import android.os.Bundle; import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity public class HelloAndroid extends Activity {
{
/** Called when the activity is first created. */ /** Called when the activity is first created. */
@Override @Override
public void onCreate(Bundle savedInstanceState) public void onCreate(Bundle savedInstanceState) {
{
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.main); TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
} }
} }