Open ifgarces opened 2 years ago
Update: on Android 9.0, for some reason, this exception is thrown instead, when attempting to open the stream for storing the image as a PNG file in storage: java.io.FileNotFoundException: /storage/emulated/0/Pictures/Horario/1640037201532.png (No such file or directory)
Update: seems to be a permission error for some android versions... This problem ain't easy to solve, will take some time.
I have spend quite a lot of time checking on this, but haven't still figured how to solve it. It has to do with newer android versions (11+?). Adding the stuck
tag now.
On the following code, for some reason, for Android 8 and 9 (or perhaps on some specific devices), the given with of the
targetView
is0
, instead of the expected value (parent view's width), so the canvas for the Bitmap cannot be created.