Write image to External Storage with Permission Request at runtime, for Android 6+ bybloggerblog •March 09, 2019 It's a simple example to write image to External Storage, with targetSdkVersion = 28. It work as expected on devices running Android below 6, but fail on Android 6+! (Solution provided in second part below) Java code: package com.blogspot.android_…