I'm trying to use a third party library in my Android app that only allows me to load a file using a string that represents the path to the file. I've placed this file in my app's assets folder thinking that I could use the AssetManager to get its path as a string. However, it only returns a relative path to the file. So I'm wondering if there's some 开发者_StackOverflow中文版way to get the full path to the file so this library can successfully load the file.
Just a guess - does Resources.getResourceName()
do the trick?
精彩评论