カメラを使用して写真を撮った後、トリミングに com.android.camera.action.CROP を使用していました。
以下は、4.3 より前に動作していた私のコードです。
Intent cropIntent = new Intent("com.android.camera.action.CROP");
cropIntent.setType("image/*");
cropIntent.putExtra("crop", "true");
cropIntent.putExtra("aspectX", 1);
cropIntent.putExtra("aspectY", 1);
cropIntent.putExtra("outputX", Conf.getInt("IMAGE_WIDTH"));
cropIntent.putExtra("outputY", Conf.getInt("IMAGE_HEIGHT"));
cropIntent.putExtras(extras);
startActivityForResult(cropIntent, CROP_REQUEST_CODE);
しかし、Android の切り抜きアクションでギャラリーに移動するため (ギャラリーはデフォルトで切り抜きであるため)、この切り抜き方法は失敗します (写真はギャラリーに保存されません)。
この問題から抜け出す方法を知っている人はいますか。カメラで撮影した写真でクロップを使用できる場所