i am making an app that records a video and then displays this video on another activity.
the problem is that this video cannot be played right away, I would have to record the video, and then restart the android app for it to show. otherwise, it shows me a message that says: "can't play this video".
Moreover, the thing that i really don't understand is that I tried it on an older phone of android version 11 and it works perfectly, but for some reason on the new phone it doesn't
I have made some research and I think it has something to do with the storage permissions but i am not sure since i tried fixing it with no luck.
what can I do to fix this?