Launch Android activity directly in Eclipse

During development, I want to create launch configurations for several actions in my application so that I can go directly to the Activity I want to test.

But when I create a new Run configuration, the list corresponding to "Launch Action" contains only the MAIN Activity, not the others.

Following @sparkymats suggestion, I tried adding IntentFilter to AndroidManifest.xml (either empty or with android.intent.category.LAUNCHER category), but only MAIN Activity is still in the activity list.

How can I run other actions directly?

+5
source share
2 answers

AndroidManifest.xml IntentFilter , . Activity Intent . , Activity Intent .

+4

,

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
+6

All Articles