android: NitActivity and NitService use long to hold pointers
[nit.git] / lib / android / service / NitService.java
index 6603b8e..fd7e79f 100644 (file)
@@ -22,10 +22,10 @@ import android.os.IBinder;
 // Service implemented in Nit
 public class NitService extends Service {
 
-       protected int nitService = 0;
+       protected long nitService = 0;
 
        static {
-               System.loadLibrary("main");
+               System.loadLibrary("nit_app");
        }
 
        @Override
@@ -51,8 +51,8 @@ public class NitService extends Service {
                return null;
        }
 
-       protected native int nitNewService();
-       protected native int nitOnStartCommand(int nitService, Intent intent, int flags, int id);
-       protected native void nitOnCreate(int nitService);
-       protected native void nitOnDestroy(int nitService);
+       protected native long nitNewService();
+       protected native int nitOnStartCommand(long nitService, Intent intent, int flags, int id);
+       protected native void nitOnCreate(long nitService);
+       protected native void nitOnDestroy(long nitService);
 }