Java tutorial
//package com.java2s; import android.content.Context; public class Main { public static String toPath(Context context) { String pn = getPackageName(context); pn = pn.replace("com.", ""); return pn.replace(".", "/"); } public static String getPackageName(Context context) { return context.getPackageName(); } }