Android之——判断当前应用程序是否是用户程序
16lz
2021-01-23
转载请注明出处:http://blog.csdn.net/l1028386804/article/details/47174969
不多说,不废话,直接上代码,大家一看都懂得。
//判断应用程序是否是用户程序 public boolean filterApp(ApplicationInfo info) { //原来是系统应用,用户手动升级 if ((info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { return true; //用户自己安装的应用程序 } else if ((info.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { return true; } return false; }
更多相关文章
- android用户界面之按钮(Button)教程实例汇
- Android之应用程序基础
- android用户界面-组件Widget-地图视图MapView
- android用户界面-组件Widget-画廊视图Gallery
- Android入门学习笔记之人机用户界面
- Android为HttpClient设置证书(用户名和密码)
- Android重启应用程序代码
- Android中获取应用程序(包)的信息-----PackageManager的使用(一)