public void onActivityResult(int requestCode, int resultCode, Intent data)
{
if (requestCode == CAMERA_REQUEST && resultCode == RESULT_OK)
{
photo = (Bitmap) data.getExtras().get("data");
//CALL THIS METHOD TO GET THE URI FROM THE BITMAP
Uri tempUri = getImageUri(getContext(), photo);
}
}
startActivityForResult(captureIntent,CAMERA_REQUEST);
拍照后无法调用onActivityResult
Content-Type
答案 0 :(得分:0)
我使用此行修复了
机器人:configChanges = “取向|屏幕尺寸”
进入带有相关活动的 AndroidManifest 文件。