Android examples for android.content.pm:PackageManager
get System Library
import java.util.Arrays; import java.util.List; import android.content.Context; import android.content.pm.PackageManager; public class Main { public static List<String> getSystemLibs(Context context) { if (null == context) { return null; }/*from ww w . j ava2 s . com*/ PackageManager pm = context.getPackageManager(); String[] libNames = pm.getSystemSharedLibraryNames(); List<String> listLibNames = Arrays.asList(libNames); return listLibNames; } }