isExternalStorageWritable()&& checkPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE is not woring code example
Example: storage permission android
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />