Harihara Krishnan
- Forum posts: 1
Feb 14, 2017, 9:01:49 PM via Website
Feb 14, 2017 9:01:49 PM via Website
I have a file in the android resource res/assets/audio.mp3
How to pass the file to the method getAssets().openFd(string)
I need the exact file path. I tried using R.raw.xxx But my requirement is to pass the file path as string.
If this is not possible kindly tell me another way of accessing it but only using a valid string path
Kindly help.
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.