개발하고 있는 패키지 안에 있는 어플이 아닌 기기에 따로 설치되어 있는 어플을 설치하기 위해서는 해당 어플의 패키지와 액티비티를 알아야 한다.
1 2 3 4 5 | ComponentName compName = new ComponentName("com.package", "com.package.activity"); Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); intent.setComponent(compName); startActivity(intent); |