mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-04-25 12:38:46 +02:00
minor log changes
This commit is contained in:
parent
145271bd7c
commit
ecb2dca285
@ -32,9 +32,9 @@ public class PhotoProcessor extends AsyncTask<byte[], Void, Void> {
|
|||||||
fos.close();
|
fos.close();
|
||||||
Utils.scanFile(photoPath, mContext);
|
Utils.scanFile(photoPath, mContext);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
Log.d(TAG, "onPictureTaken file not found: " + e.getMessage());
|
Log.d(TAG, "PhotoProcessor file not found: " + e.getMessage());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.e(TAG, "onPictureTaken ioexception " + e.getMessage());
|
Log.e(TAG, "PhotoProcessor ioexception " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -477,11 +477,11 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
|
|||||||
camera.unlock();
|
camera.unlock();
|
||||||
try {
|
try {
|
||||||
recorder.start();
|
recorder.start();
|
||||||
|
isRecording = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Utils.showToast(getContext(), R.string.video_setup_error);
|
Utils.showToast(getContext(), R.string.video_setup_error);
|
||||||
Log.e(TAG, "toggleRecording " + e.getMessage());
|
Log.e(TAG, "toggleRecording " + e.getMessage());
|
||||||
}
|
}
|
||||||
isRecording = true;
|
|
||||||
}
|
}
|
||||||
return isRecording;
|
return isRecording;
|
||||||
}
|
}
|
||||||
@ -494,6 +494,7 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
|
|||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
new File(curVideoPath).delete();
|
new File(curVideoPath).delete();
|
||||||
Utils.showToast(getContext(), R.string.video_saving_error);
|
Utils.showToast(getContext(), R.string.video_saving_error);
|
||||||
|
Log.e(TAG, "stopRecording " + e.getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
recorder = null;
|
recorder = null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user