|
|
@ -484,6 +484,8 @@ public class MicroPhotoService extends Service {
|
|
|
|
Intent intent = makeRecordingIntent(context, cameraId, videoId, duration, width, height, quality, orientation,
|
|
|
|
Intent intent = makeRecordingIntent(context, cameraId, videoId, duration, width, height, quality, orientation,
|
|
|
|
leftTopOsd, rightTopOsd, rightBottomOsd, leftBottomOsd);
|
|
|
|
leftTopOsd, rightTopOsd, rightBottomOsd, leftBottomOsd);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
|
|
|
|
|
|
|
|
context.startActivity(intent);
|
|
|
|
context.startActivity(intent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -503,7 +505,7 @@ public class MicroPhotoService extends Service {
|
|
|
|
intent.putExtra("rightBottomOsd", rightBottomOsd);
|
|
|
|
intent.putExtra("rightBottomOsd", rightBottomOsd);
|
|
|
|
intent.putExtra("leftBottomOsd", leftBottomOsd);
|
|
|
|
intent.putExtra("leftBottomOsd", leftBottomOsd);
|
|
|
|
|
|
|
|
|
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
|
|
|
|
|
|
|
|
return intent;
|
|
|
|
return intent;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1159,7 +1161,7 @@ cellSignalStrengthGsm.getDbm();
|
|
|
|
protected native void updatePosition(long handler, double lon, double lat, double radius, long ts);
|
|
|
|
protected native void updatePosition(long handler, double lon, double lat, double radius, long ts);
|
|
|
|
protected native boolean uninit(long handler);
|
|
|
|
protected native boolean uninit(long handler);
|
|
|
|
protected native void recordingFinished(long handler, boolean result, String path, long videoId);
|
|
|
|
protected native void recordingFinished(long handler, boolean result, String path, long videoId);
|
|
|
|
public static native long takePhoto(int channel, int preset, int cameraId, boolean usb, String path);
|
|
|
|
public static native long takePhoto(int channel, int preset, int cameraId, boolean usb, String path, String leftTopOsd, String rightTopOsd, String rightBottomOsd, String leftBottomOsd);
|
|
|
|
public static native void releaseDeviceHandle(long deviceHandle);
|
|
|
|
public static native void releaseDeviceHandle(long deviceHandle);
|
|
|
|
public static native void infoLog(String log);
|
|
|
|
public static native void infoLog(String log);
|
|
|
|
public static native void setOtgState(boolean enabled);
|
|
|
|
public static native void setOtgState(boolean enabled);
|
|
|
|