During development, I want to create run configurations for several activities within my App, 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 and not the others.
Following @sparkymats suggestion I tried adding an IntentFilter to AndroidManifest.xml (either empty or with a android.intent.category.LAUNCHER category), but the Activity list still only contains the MAIN Activity.
How can I directly launch other activities?
To achieve this, you will need to modify your
AndroidManifest.xmland add anIntentFilterto each one you want to launch directly. AnActivityis launched by sending an Intent to it. So, theActivitymust be configured to receiveIntents from the launcher.