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
This commit is contained in:
37
src/com/mcserver/MCServerActivity.java
Normal file
37
src/com/mcserver/MCServerActivity.java
Normal file
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user