Android Studio - Run application without launcher activity
In Run/Debug Configurations (just next to the launch
button in the toolbar) you can manage your application configurations. There you should be able to specify whether you want to launch an Activity
or not.
In Run/Debug Configurations in General -> Launch Options -> Launch select Nothing
like this