When the file manager is called to fetch the file, the path of the file has been resolved, but when the bitmap is used to read the file, it cannot be read dead or alive, and always returns null objects.

So they checked it out,

1. The return path is correct

2. Add read and write permissions

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Copy the code

But it still can’t read the file and display it properly

After a long time of work, I finally looked at the phone and found the problem of APP permissions.

It is not enough to include the step 2 permission code in androidManifestx.xml.

You need to set the permissions of your APP in your mobile APP.

Solutions:

Hold down APP to access APP Info and modify permission information.

Really outrageous, this problem for a long time, have doubted life.