我想获取 imageview realPath 并编写 textview .. 我可以在库中获取 RealPath 但我不能在相机中
这是我的代码
此代码为库提供路径
private void takeLibrary(int sdk, String uriPath,String realPath){
this.txtSDK.setText("Build.VERSION.SDK_INT: "+sdk);
this.txtUriPath.setText("URI Path: "+uriPath);
this.txtRealPath.setText(realPath);
Uri uriFromPath = Uri.fromFile(new File(realPath));
Bitmap bitmap = null;
try {
bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(uriFromPath));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
imageView.setImageBitmap(bitmap);
}
还有这台相机
private void onCaptureImageResult(Intent data) {
// ????????????
}
?? 我应该写什么请帮助谢谢