get System Library - Android android.content.pm

Android examples for android.content.pm:PackageManager

Description

get System Library

Demo Code

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;
  }

}

Related Tutorials