0
私は自分のアバターを自分で設定したり、ギャラリーから画像を選んだりすることができます。私は他のアプリで、画像を選択した後にユーザーが画像のどの領域をアバターとして使用するかを選択する矩形を描くことができるビューを表示したことがわかりました。 私はこの可能性を私のアプリに含めたいと思います。写真を撮った後、どうすればいいですか?画像を選択してアバターを設定する方法
ありがとうございます!
編集:
私はこれでそれをやろうとしているが、それは代わりにカメラの画像ギャラリーを開きます。
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.setType("image/*");
cameraIntent.putExtra("crop", "true");
cameraIntent.putExtra("scale", "true");
cameraIntent.putExtra("outputX", 100);
cameraIntent.putExtra("outputY", 100);
cameraIntent.putExtra("aspectX", 1);
cameraIntent.putExtra("aspectY", 1);
cameraIntent.putExtra("max-width", 30);
cameraIntent.putExtra("max-height", 30);
cameraIntent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(cameraIntent, IMAGEN_CAMARA);
私はそれを試してみたが、作物のクラスを見つけることがないようなので、それは私に例外を与えます... – Alex