How to access a file from asset/raw directory
问题 with this below code i'm trying to access the file which is stored in asset/raw folder, but getting null and E/ERR: file:/android_asset/raw/default_book.txt (No such file or directory) error, my code is: private void implementingDefaultBook() { String filePath = Uri.parse("file:///android_asset/raw/default_book.txt").toString(); File file = new File(filePath); try { FileInputStream stream = new FileInputStream(file); } catch (Exception e) { e.printStackTrace(); Log.e("ERR ", e.getMessage());