I have an app with randomly generated assets folder. In that assets folder, each time my app opens, i must open a file with ".jet" extension. The problem is that the file will have a different random name each time the app opens.
So. How can i search for the first file of assets folder with ".jet" extension?
I can't find any info about that in google
Thanks
The only way is to search for the extensions:
AssetManager am = getAssets();
String fileList[] = am.list("");
for (String fileName : fileList) {
if (fileName.endsWith(".jet") {
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With