|
|
|
@ -306,6 +306,17 @@ public class MicroPhotoService extends Service {
|
|
|
|
|
|
|
|
|
|
mService.registerHeartbeatTimer();
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
ConnectivityManager connectivityManager = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
|
|
|
|
if (connectivityManager != null) {
|
|
|
|
|
if (!connectivityManager.isDefaultNetworkActive()) {
|
|
|
|
|
infoLog("DefaultNetwork is NOT Active");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else if (TextUtils.equals(ACTION_TAKE_PHOTO, action)) {
|
|
|
|
|
long ts = intent.getLongExtra(EXTRA_PARAM_TIME, 0);
|
|
|
|
|
int cnt = intent.getIntExtra(EXTRA_PARAM_SCHEDULES, 0);
|
|
|
|
@ -1137,6 +1148,7 @@ cellSignalStrengthGsm.getDbm();
|
|
|
|
|
protected native void updatePosition(long handler, double lon, double lat, double radius, long ts);
|
|
|
|
|
protected native boolean uninit(long handler);
|
|
|
|
|
protected native void recordingFinished(long handler, boolean result, String path, long videoId);
|
|
|
|
|
public static native void infoLog(String log);
|
|
|
|
|
public static native void setOtgState(boolean enabled);
|
|
|
|
|
public static native void setCam3V3Enable(boolean enabled);
|
|
|
|
|
public static native String getSerialNumber();
|
|
|
|
@ -1151,6 +1163,7 @@ cellSignalStrengthGsm.getDbm();
|
|
|
|
|
public static native boolean exportPrivateFile(int index, String outputPath);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////GPS////////////////////
|
|
|
|
|
// private static final String GPS_LOCATION_NAME = android.location.LocationManager.GPS_PROVIDER;
|
|
|
|
|
private LocationManager mLocationManager;
|
|
|
|
|