|
 |
8³â Àü |
±×³É ´Ù¸¥¾Û ½ÇÇàÇÏ´Â ¹æ¹ýÀº ¸Å¿ì °£´ÜÇÏ¿´´Ù.
Intent intent = this.getPackageManager().getLaunchIntentForPackage(packageName);
intent.setAction(Intent.ACTION_MAIN);
startActivity(intent);
ȤÀº
ComponentName compName = new ComponentName(ÆÐÅ°Áö,ÆÐÅ°Áö.¾×ƼºñƼ¸í);
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setComponent(compName);
ÇØ´ç ¹æ¹ýÀ¸·Î ½ÇÇàÇÏ¸é ·±Ã³·Î ¼³Á¤µÈ ¸ÞÀÎ ¿¢Æ¼ºñƼ°¡ ½ÇÇàÀÌ µÈ´Ù......
±Ùµ¥ ½ÇÇà ÇÏ°í ½ÍÀº ¾×ƼºñƼ´Â ´Ù¸¥ ¾×ƼºñƼ¶ó¸é????
ÀÏ´Ü ½ÇÇàÇÏ°í ½ÍÀº ¾ÛÀÇ ¸Þ´ÏÆ佺Ʈ¿¡ ÇØ´ç ¾×ƼºñƼ ¾È¿¡ ÀÎÅÙÆ®ÇÊÅ͸¦ »ý¼ºÇØÁØ´Ù
<action android:name="com.example.test.T" />
<category android:name="android.intent.category.DEFAULT"/>
¾×¼ÇÀÇ À̸§À» Á¤ÇØÁÖ°í
Intent intent=new Intent(¾×¼ÇÀÇ À̸§);
startActivity(intent);
ÀÌ·¸°Ô ³Ö¾ú´Âµ¥µµ ¸ÞÀξ×ƼºñƼ·Î¸¸ À̵¿µÇ¾ú´Ù.
±×·¡¼ ÇÒ ¼ö ¾øÀÌ
Intent intent = this.getPackageManager().getLaunchIntentForPackage(packageName);
intent.setAction(Intent.ACTION_MAIN);
startActivity(intent);
À§Ã³·³ ÀÚ¹Ù´ÜÀ» ¼öÁ¤ÇÏ°í
È£ÃâÇÒ ¾Û ¸Þ´ÏÆ佺Ʈ È£ÃâÇÒ ¾×ƼºñƼ´Ü¿¡ android:exported ="true"¸¦ Ãß°¡ÇØÁÖ´Ï ¿øÇÏ´Â ¾×ƼºñƼ·Î È£ÃâÀÌ °¡´ÉÇß´Ù. |
|
̵̧ : 301 |
̵̧
¸ñ·Ï
|
|