chiark / gitweb /
It works a bit more, so that's probably progress.
[tripe-android] / toy-activity.scala
index c605ca5f9561520a5e8c4fafda34a4762825d51c..7ee4dad912ea5f6e08feb48698de75487aba7a06 100644 (file)
@@ -15,8 +15,6 @@ import scala.util.control.Breaks;
 
 object ToyActivity {
   private final val TAG = "ToyActivity";
-  System.loadLibrary("jni");
-  @native protected def foo();
 }
 
 class ToyActivity extends Activity {
@@ -30,10 +28,5 @@ class ToyActivity extends Activity {
   }
   def clickOk(v: View) {
     Log.d(TAG, "OK, OK.  (Scala was here.)");
-    foo();
-
-    val bindir = getDir("bin", MODE_WORLD_READABLE);
-    Runtime.getRuntime.exec(Array(new File(bindir, "prog").getPath,
-                                 "testing", "1", "2", "3"));
   }
 }