Take the tour ×  Is there any way to access a file into assets
folder by name with regular expression?  Only selected one file
but obvious the suffix into the name  Something like:      aFD
=SessionManager.getAppContext().getAssets().openFd("box*.png");
The case:  share|improve this question add comment  3 Answers
up vote 0 down vote accepted  You should get all files from
assets folder  AssetManager amgr = getAssets();     String[]
list = amgr.list("./");     for(String s : list){
Log.d("File:", s);         //check if filename is what you need
if (s.contains(what you need OR regex pattern)){
//do staff  You can view all files and take only what you need,
by using REGEX or contains()  share|improve this answer My
question was oriented if the Android API would resolve it in a
transparent way. However this response is valid. –  Zeus
Monolitics Feb 1 at 16:25 add comment  Just walk through the
list...  for( String fileName : getAssets().list( "" ) ) {
if( fileName.endsWith( ".pn