Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.pm.ApplicationInfo;

public class Main {

    public static boolean isSystemApplication(ApplicationInfo appInfo) {
        if (appInfo == null)
            return false;

        return isSystemApplication(appInfo.flags);
    }

    public static boolean isSystemApplication(int flags) {
        if ((flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0)
            return true;
        else if ((flags & ApplicationInfo.FLAG_SYSTEM) != 0)
            return true;

        return false;
    }
}