public static boolean isSystemApplication(Context context){
  if (context == null) {
    return false;
  }
  return isSystemApplication(context,context.getPackageName());
}

public static boolean isSystemApplication ( Context context ) { if ( context == null ) { return false ; } return isSystemApplication ( context , context . getPackageName ( ) ) ; }
whether context is system application
