summaryrefslogtreecommitdiff
path: root/test/files/android
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-11-27 19:49:42 +0000
committermichelou <michelou@epfl.ch>2007-11-27 19:49:42 +0000
commitb7af5e53d19c49c1748776b271bc4ff237529bf0 (patch)
treec7f00df942554fce6b71bf52f1f1dbca0e089b17 /test/files/android
parent1999c1bdc33f117b695d10c6eb77c82f60e2fbe2 (diff)
downloadscala-b7af5e53d19c49c1748776b271bc4ff237529bf0.tar.gz
scala-b7af5e53d19c49c1748776b271bc4ff237529bf0.tar.bz2
scala-b7af5e53d19c49c1748776b271bc4ff237529bf0.zip
added Android build and test support
Diffstat (limited to 'test/files/android')
-rw-r--r--test/files/android/HelloAndroid.scala16
-rw-r--r--test/files/android/HelloAndroid.xml11
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>