Java Code Examples for android.content.pm.PackageManager.getPermissionGroupInfo()

The following are Jave code examples for showing how to use getPermissionGroupInfo() of the android.content.pm.PackageManager class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Brevent   File: OpsItemAdapter.java   View Source Code Vote up 5 votes
private PermissionGroupInfo getPermissionGroupInfo(PackageManager packageManager, String group) {
    if (TextUtils.isEmpty(group)) {
        return null;
    }
    try {
        return packageManager.getPermissionGroupInfo(group, 0);
    } catch (PackageManager.NameNotFoundException e) {
        UILog.w("Can't find permission group " + group, e);
        return null;
    }
}