summaryrefslogtreecommitdiffstats
path: root/src/com/mcserver/MCServerActivity.java
blob: 225ba7a946f3bfb5cdb71f411baf438d6972e740 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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();
}