개발일기/Android

[Android] 기본설치앱 확인하기

쌀덕이 2014. 7. 10. 14:59

PackageManager packageManager = mContext.getPackageManager();

 //Activity 혹은 Service클래스 맴버함수 위의 mContext는 Activity나 Service를 뜻함 20140714 수정

PcakageManager packageManager = getPackageManager();

List<ApplicationInfo> installedApplications =packageManager.getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES);


for (ApplicationInfo appInfo : installedApplications){

if((appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 1){ 

//사용자 설치

}

}


[출저]

http://www.androidside.com/plugin/mobile/board.php?bo_table=B49&wr_id=102226