I have 2 Apps which have the same package name but different package IDs(set in gradle config).
An activity is started by setting an intent's action string in both the apps which are same in both Apps.
This means that if I have both the Apps installed on the same device then starting an Activity shows me a Complete action using..
dialog which asks the user to choose an activity to complete the action with.
My question is as to how I can separate them without going through changing the string itself in the manifest files (a lot of them due to multiple modules) and the setting of action string before using startActivity()
itself in the codebase so that the actions are limited to the current App only?
Update #1: Do we have anything closer to intent.setPackage()
as to use Application Id instead?