Because I wanted to carry a lot of image files and music files on my Android tablet, I had a hard time trying to make a simple app using WebView. ..
Lenovo 501LV (Android 5.0.2, API21)
///storage/sdcard1
The first pitfall is
"Display HTML file on SD card"
What I googled in ...
next
On Lenovo 501LV, with `getExternalStorageDirectory ()`
I couldn't find the SD card pass. .. (It seems that the path of the internal storage is returned depending on the model)
And finally
If you look at the log properly
D/Environment: getStorageVolume, volume:StorageVolume: mStorageId=65537 mPath=/storage/emulated/0 mDescriptionId=17040812 mPrimary=true mRemovable=false mEmulated=true mMtpReserveSpace=10 mAllowMassStorage=false mMaxFileSize=0 mOwner=UserHandle{0} mUuid=null mUserLabel=null mState=mounted D/Environment: getStorageVolume, volume:StorageVolume: mStorageId=131073 mPath=/storage/sdcard1 mDescriptionId=17040810 mPrimary=false mRemovable=true mEmulated=false mMtpReserveSpace=0 mAllowMassStorage=true mMaxFileSize=4294967295 mOwner=null mUuid=0403-0201 mUserLabel=null mState=mounted
`mPath=/storage/sdcard1`
(・ ・ ;)
It was here. ..
Ohri
Recommended Posts