diff options
Diffstat (limited to 'test/files/android')
-rw-r--r-- | test/files/android/HelloAndroid.scala | 16 | ||||
-rw-r--r-- | test/files/android/HelloAndroid.xml | 11 |
2 files changed, 27 insertions, 0 deletions
diff --git a/test/files/android/HelloAndroid.scala b/test/files/android/HelloAndroid.scala new file mode 100644 index 0000000000..9fd145a4f1 --- /dev/null +++ b/test/files/android/HelloAndroid.scala @@ -0,0 +1,16 @@ +//package examples.hello3 + +import android.app.Activity +import android.os.Bundle +import android.widget.TextView + +//class HelloAndroid extends Activity { +class Test extends Activity { + /** Called when the activity is first created. */ + override def onCreate(icicle: Bundle) { + super.onCreate(icicle) + val tv = new TextView(this) + tv setText "Hello, Android (Scala)" + setContentView(tv) + } +} diff --git a/test/files/android/HelloAndroid.xml b/test/files/android/HelloAndroid.xml new file mode 100644 index 0000000000..41907b16a3 --- /dev/null +++ b/test/files/android/HelloAndroid.xml @@ -0,0 +1,11 @@ +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package=""> + <application> + <activity class="HelloAndroid" android:label="HelloAndroid"> + <intent-filter> + <action android:value="android.intent.action.MAIN" /> + <category android:value="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> +</manifest> |