How can I get the entire list of .json configuration files that are NOT on the SD card, but in my package? The image below shows the files in the folder that I want to access. The idea is this: when I start the application, I want to get a list of configuration files, the path to them and show that the testers need to choose which server to connect to. How can i do this? I searched for PackageManager and AssetManager , but failed.
When I put folders in folder files, this game code gives me a list of available configurations, but how can I get the full path to them to read them?
AssetManager am = getAssets(); String s = getPackageName(); Resources tmp = pm.getResourcesForApplication(s); String [] arr = am.list("configs2");

source share