Я привык захватывать и обрести одновременно, используя код ниже. Теперь он перестает работать в Киткате. Мне нужно делать это другим? < /P>
Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, tempUri);
cameraIntent.putExtra("crop", "true");
cameraIntent.putExtra("outputX", defaultWidth);
cameraIntent.putExtra("outputY", defaultHeight);
getActivity().startActivityForResult(cameraIntent, 1);
< /code>
или мне нужно начать отдельное намерение для обрезки? < /p>
Intent cropIntent = new Intent("com.android.camera.action.CROP");
cropIntent.putExtra("crop", "true");
cropIntent.putExtra("outputX", defaultWidth);
cropIntent.putExtra("outputY", defaultHeight);
cropIntent.putExtra("return-data", true);
startActivityForResult(cropIntent, 2);
Подробнее здесь: https://stackoverflow.com/questions/352 ... oid-kitkat