I created an aar and i added it to my project as an module. in this module i have a HelloWorldActivity that i want to run.
my module manifest looks like this.
first module activity launch then second module activity launch and write a line of code is perfectly fine.
 Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.your.packagename");
            if (launchIntent != null) {
                startActivity(launchIntent);//null pointer check in case package name was not found
            }