It turns out PackageManager.resolveActivity() seems to be the one I'm looking for.
Intent intent = new Intent("some.Activity.inAppB");
ResolveInfo ri = packageManagerInstance.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY);
if(ri != null) {
ri.activityInfo.packageName // is the packageName for the activiy provided in the intent
}