object ToyActivity {
private final val TAG = "ToyActivity";
- System.loadLibrary("jni");
- @native protected def foo();
}
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"));
}
}