これが私のコードです。
try {
if (mMediaRecorder != null) {
try {
mMediaRecorder.prepare();
} catch (IOException e) {
e.printStackTrace();
}
// This line throwing exception
mMediaRecorder.start();
try {
if (mCamera != null)
mCamera.startSmoothZoom(globalZoomValue);
} catch (Exception e1) {
e1.printStackTrace();
}
}
} catch (Exception e) {
// This is thrown if the previous calls are not called with
// the
// proper order
e.printStackTrace();
}
このコードは他のデバイスでは問題なく動作しますが、samsung galaxy S2 では例外がスローされます。