0
我想這樣做:我選擇一個分辨率下一步我設置最接近的分辨率並拍一張照片,但我不知道如何獲得分辨率列表並設置分辨率。 我拍一張照片就這樣:Java android自定義分辨率捕獲照片
private void clickpic() {
// Check Camera
if (getApplicationContext().getPackageManager().hasSystemFeature(
PackageManager.FEATURE_CAMERA)) {
// Open default camera
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
// start the image capture Intent
startActivityForResult(intent, REQUEST_CAMERA);
} else {
Toast.makeText(getApplication(), R.string.no_camera, Toast.LENGTH_LONG).show();
}
}
所以我不能做到我想要的東西? –
@KrzysztofPokrywka:不適用於'ACTION_IMAGE_CAPTURE'。歡迎您直接使用相機API,雖然這非常複雜。 – CommonsWare
可以給我一些例子,我找不到 –