Is it possible to get the full path to the asset file of an Android application as a string?

I am trying to use a third-party library in my Android application, which allows me to upload a file using a line representing the file path. I placed this file in the application asset folder, thinking that I can use AssetManager to get its path as a string. However, it only returns the relative path to the file. Therefore, I am wondering if there is a way to get the full path to the file so that this library can successfully download the file.

+7
android filepath assets
source share
1 answer

Just guessing - does Resources.getResourceName() trick?

0
source share

All Articles