I try take photo from camera this way:
private void photo() {
String storageState = Environment.getExternalStorageState();
if (storageState.equals(Environment.MEDIA_MOUNTED)) {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
String directory = Environment.getExternalStorageDirectory()
.getName() + File.separatorChar + "app/photo/";
mPushFilePath = directory + System.currentTimeMillis() + ".jpg";
File imageFile = new File(mPushFilePath);
Uri mImageFileUri = Uri.fromFile(imageFile);
intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT,
mImageFileUri);
startActivityForResult(intent, CAMERA_RESULT);
}
}
And I take picture in method onActivityResult from path mPushFilePath
In all devices this code working perfectly. But in Lenovo A750, when I try get picture, button v (or ok) doesn’t work. Please, help me to fix this.
I solved the problem this way: When need to call the camera, if the device Lenovo, I call the custom camera that made myself. If not, everything is as it used to.