I have two sub-folders under assets folder ie one for English and another for Turkish which contains respective .mp3 files. All i want to know is how to access a file places under these folders.
Try this code
InputStream is = getAssets().open("eng/file1.mp3");
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String line = null;
while ((line = br.readLine()) != null)
{
//Logic here
}
br.close();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.