Java tutorial
//package com.java2s; import java.io.File; import android.content.Context; public class Main { public static String getModelPath(String modelName, Context mContext) { String path = null; File dataDir = mContext.getApplicationContext().getExternalFilesDir(null); if (dataDir != null) { path = dataDir.getAbsolutePath() + File.separator + modelName; } return path; } }