intent1 [안드로이드] 특정 App의 Main Activity 실행하기 ⊙ 소스코드 final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); final PackageManager packageManager = getPackageManager(); apps = packageManager.queryIntentActivities(mainIntent, 0); if (null != apps) { Log.d("ACTIVITY", "apps : " + apps.size()); ResolveInfo info = apps.get(0); String pkg = info.activityInfo.applicationInfo.packageName; St.. 2012. 1. 10. 이전 1 다음