누

[안드로이드] 자신의 폰에 깔려있는 앱들 검색하기

· 2013-01-18 (금) 12:59:13 · 3971

public void pak() {

pm = getPackageManager();

 

Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);

mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);

//리스트 에 담기

appList = pm.queryIntentActivities(mainIntent, 0);
//정렬

Collections.sort(appList, new ResolveInfo.DisplayNameComparator(pm));

}
이 함수 그대로 쓰시면됩니다.~ appList는 ArrayList<String> 으로 선언 하시면 됩니다

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
14-10-13 조회 6,449
14-10-11 조회 6,644
14-10-11 조회 6,549
14-10-11 조회 6,435
14-10-10 조회 6,398
14-10-10 조회 6,253
14-10-08 조회 6,933
14-10-07 조회 6,352
14-10-06 조회 6,702
14-10-06 조회 7,492