Guys. I’m experiencing issues where calling Frame.save fails if I start a new Activity immediately after calling the method. It works ok (most times but not always) on the first start of the Activity but if I do Activity A: saveFrame() -> Activity B: do something -> return to Activity A: then frame.save() will fail. I can still see “Writing image to /storage/emulated/0/folder/filename.jpg” printed in the logcat but the file does not end up being written until Activity B has finished. By which time it’s of no use.
If it’s any help it appears that the issue is more pronounced in lower end devices but that’s purely anecdotal.