is User Install App - Android App

Android examples for App:App Install

Description

is User Install App

Demo Code


//package com.java2s;

import android.content.pm.ApplicationInfo;

public class Main {

    public static boolean isUserInstallApp(ApplicationInfo info) {
        if ((info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) {

            return false;
        } else if ((info.flags & ApplicationInfo.FLAG_SYSTEM) == 0) {
       /*from ww  w. j a v  a 2 s. com*/
            return true;
        }
        return false;
    }
}

Related Tutorials