@@ -2,5 +2,16 @@ package ai.pai.lensman.dslr; |
||
2 | 2 |
|
3 | 3 |
public class CameraJNIInterface { |
4 | 4 |
|
5 |
+ static { |
|
6 |
+ System.loadLibrary(""); |
|
7 |
+ } |
|
8 |
+ |
|
9 |
+ public native int mygpcamerainit(); |
|
10 |
+ public native int mygpcameraexit(); |
|
11 |
+ public native String mygpcameragetsummary(); |
|
12 |
+ public native int mygpcamerawaitforevent(String foldr_path, String file_name); |
|
13 |
+ public native int mygpfilenewfromfd(String file_path); |
|
14 |
+ public native int mygpcamerafileget(String foldr_path, String file_name); |
|
15 |
+ public native int mygpfilefree(); |
|
5 | 16 |
|
6 | 17 |
} |
@@ -0,0 +1,15 @@ |
||
1 |
+package ai.pai.lensman.dslr; |
|
2 |
+ |
|
3 |
+ |
|
4 |
+import android.app.Service; |
|
5 |
+import android.content.Intent; |
|
6 |
+import android.os.IBinder; |
|
7 |
+ |
|
8 |
+public class CameraService extends Service { |
|
9 |
+ |
|
10 |
+ @Override |
|
11 |
+ public IBinder onBind(Intent intent) { |
|
12 |
+ return null; |
|
13 |
+ } |
|
14 |
+ |
|
15 |
+} |