Skip to content

Instantly share code, notes, and snippets.

View jianinz's full-sized avatar

Jianing Zhang jianinz

View GitHub Profile
public class Dexter {
private static String optimizedDirectory = "optimized";
private static String workDirectory = "working";
public static void loadFromAssets(Context context, String fileName) throws Exception {
File optimized = new File(optimizedDirectory);
optimized = context.getDir(optimized.toString(), Context.MODE_PRIVATE);
optimized = new File(optimized, fileName);