Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Context; import android.content.pm.PackageManager; public class Main { /** * Extract the app full file system location. * @param context of the application that will be use as base point. * @return Full application file system url. * @throws PackageManager.NameNotFoundException */ private static String getSourcePath(Context context) throws PackageManager.NameNotFoundException { return context.getPackageManager().getApplicationInfo(context.getPackageName(), 0).sourceDir; } }