summaryrefslogtreecommitdiffstats
path: root/src/com/mcserver/MCServerActivity.java
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-15 23:24:11 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-15 23:24:11 +0200
commitd21e4dacf7341b924fa534523ba31348ff6789ad (patch)
tree95a8b355c471cd2ab39e58f3d80b63d64ab8510a /src/com/mcserver/MCServerActivity.java
parentAdded temporary debug statistics of the RelEntMoveLook packet removal efficiency (diff)
downloadcuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.gz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.bz2
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.lz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.xz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.zst
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.zip
Diffstat (limited to '')
-rw-r--r--src/com/mcserver/MCServerActivity.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/com/mcserver/MCServerActivity.java b/src/com/mcserver/MCServerActivity.java
new file mode 100644
index 000000000..225ba7a94
--- /dev/null
+++ b/src/com/mcserver/MCServerActivity.java
@@ -0,0 +1,37 @@
+package com.mcserver;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+public class MCServerActivity extends Activity {
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+
+ MainThread p = new MainThread();
+ p.start();
+
+ //NativeOnCreate();
+ }
+
+
+ static {
+ System.loadLibrary("mcserver");
+ }
+
+ private static native void NativeOnCreate();
+}
+
+
+class MainThread extends Thread {
+ MainThread() {
+ }
+
+ public void run() {
+ NativeOnCreate();
+ }
+
+ private static native void NativeOnCreate();
+} \ No newline at end of file