is System App - Android android.content.pm

Android examples for android.content.pm:PackageManager

Description

is System App

Demo Code

import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;

public class Main {

  public static boolean isSystemApp(PackageInfo pInfo) {
    return ((pInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0);
  }/*from w  ww  . j  ava 2 s . com*/

}

Related Tutorials