From d21e4dacf7341b924fa534523ba31348ff6789ad Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 15 Aug 2012 21:24:11 +0000 Subject: Compiles on Android! Added Eclipse project, import it into your workspace and it should be runnable on Android! Disabled Squirrel for Android cLog now logs to Android LogCat as well Fixed Lua so it compiles on Android Removed/commented out exceptions in JsonCpp so it compiles on Android git-svn-id: http://mc-server.googlecode.com/svn/trunk@741 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- src/com/mcserver/MCServerActivity.java | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/com/mcserver/MCServerActivity.java (limited to 'src/com') 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 -- cgit v1.2.3