See https://stackoverflow.com/questions/32333094/android-fileprovider-for-ext-sdcard for why this solution migth work.