Yup, definitely did this before... but where did I put it?
This commit is contained in:
parent
012ea36add
commit
490eb04c39
2
.env
2
.env
@ -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
2
HelloAndroid/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bin
|
||||||
|
gen
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user