Code example for AssetFileDescriptor

Methods: createInputStreamgetLength

0
 
 
 
 
		// Read file 
		int size = (int) file.getLength();
	    byte[] data = new byte[size];
		BufferedInputStream buf = new BufferedInputStream(file.createInputStream());
        buf.read(data, 0, data.length);
        buf.close();
		 
		return data;
	} 
} 
 
 
 
 
/* 
Unzip helper from stack overflow at : 
Stop searching for code, let great code find you!  Add Codota to your java IDE