resultCode -1 -Android

时间:2014-01-29 09:30:43

标签: android android-intent

当我拍照并点击勾选时,为什么我的resultCode为-1这个相机意图?

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
            imageUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory(),"fname_" +        
                                    String.valueOf(System.currentTimeMillis()) + ".jpg"));
            intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, imageUri);
            startActivityForResult(intent, CAMERA_REQUEST);

由于

1 个答案:

答案 0 :(得分:1)