does this work with android 10 and 11, cause I've implemented some very similar functionality to what you have in the video but in android 10 and 11 I get this error "java.lang.SecurityException: Permission Denial" whenever I try to trigger the share intent, but with API < 29 it works normally
@@androidtutorials9328 medium.com/androiddevelopers/sharing-content-between-android-apps-2e6db9d1368b They have mentioned that it is possible, however I am stuck up on the part to create a File object. Can you go through this and help me on what path to give in the constructor of File such that it references to the res/raw directory
There might be a hacky way of doing it, but the general path is to save it on phone first. stackoverflow.com/questions/46827950/how-to-share-audio-file-from-raw-folder-into-social-apps
Thank you so much I have not been able to find a working solution for sharing from resource files until now, you are a real life saver!
thank you bro but i have a question is the code for the java is similar ??
In tts how the audio file can be share
Please make the video for this
does this work with android 10 and 11, cause I've implemented some very similar functionality to what you have in the video but in android 10 and 11 I get this error "java.lang.SecurityException: Permission Denial" whenever I try to trigger the share intent, but with API < 29 it works normally
Can you make video about OpenCV Android such Document Scan Using OCR and MRZ
That seems more of an OpenCV tutorial, but I could look into general text recognition with it.
Is there a way to share mp3 files directly from raw without writing them onto external storage first?
I don't believe so no. It needs to be stored on the phone and give the share permission to other apps.
@@androidtutorials9328 medium.com/androiddevelopers/sharing-content-between-android-apps-2e6db9d1368b
They have mentioned that it is possible, however I am stuck up on the part to create a File object. Can you go through this and help me on what path to give in the constructor of File such that it references to the res/raw directory
There might be a hacky way of doing it, but the general path is to save it on phone first.
stackoverflow.com/questions/46827950/how-to-share-audio-file-from-raw-folder-into-social-apps
@@androidtutorials9328 Got it, anyway, thank you!