Open MrCsabaToth opened 4 years ago
Here is the share, line 172 is the Uri imageURI = Uri.parse(imagePath);
:
Bitmap bitmap = BitmapUtils.combineDrawables(getResources(), head, body, legs);
String imagePath = MediaStore.Images.Media.insertImage(
requireActivity().getContentResolver(), bitmap,
getResources().getString(R.string.android_avatar), null
);
Uri imageURI = Uri.parse(imagePath);
startShareActivity(imageURI);
This might be a permission issue? Maybe it's the new ScopedStorage related permission changes? https://developer.android.com/about/versions/10/privacy/changes#scoped-storage https://developer.android.com/training/data-storage#scoped-storage ? I wonder if as a workaround reverting target SDK level to API 28 would help. I assume that with the new permissions I cannot simply get a URI of the file.
Maybe I should look into FileProvider. Also check if the file permissions are handled well.
Seeing this in App Store crash reports. Call stack:
https://play.google.com/console/u/0/developers/7696534728259995393/app/4972777259653312467/vitals/crashes/ce0e7156/details?installedFrom=PLAY_STORE&days=30
besides those there is also: