我有这个代码:
String filePath = getActivity().getFileStreamPath("into11.png").getAbsolutePath();
if(Drawable.createFromPath(filePath)!=null){
img.setImageDrawable(Drawable.createFromPath(filePath));
}
else{
Log.d("nulllllllllllllllllllllllllllllllll","yessssssssssssssssssssssssssss");
}
文件路径正在获取图像“data/data/.../intro11.png”的正确路径,但 Drawable.createFromPath(filePath) 为空,这是什么原因?