how to pass asset file path in the method getAssets().openFd(string)

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

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 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.