title: Double Activity definition when using dynamic modules
body: <p>I have this project structure on a test app.</p>
  <p>App module -&gt; an API interfaces module -&gt; a dynamic module that implements my API interfaces and used third party APIs.</p>
  <p>On the dynamic module I have an <code>Activity</code> defined from a third party. This activity has a check in it to make sure no other app in the entire system has the same <code>scheme</code> registered. Basically to make not two apps are using the same third party API key.</p>
  <p>Their code for this check is super simple:</p>
  <pre><code>    Intent testIntent = new Intent(Intent.ACTION_VIEW);
      testIntent.setData(Uri.parse(&quot;theirscheme://.....&quot;));
      PackageManager pm = context.getPackageManager();
      List&lt;ResolveInfo&gt; activities = pm.queryIntentActivities(testIntent, 0);
  </code></pre>
  <p>When using dynamic modules with the code above, <code>activities</code> has a size of <code>2</code>.</p>
  <p>I managed to get <code>activities</code> to have a size of <code>1</code> by using <code>Edit configuration</code> on Android Studio and unchecking the dynamic module on the General tab. But then the module wasn't installed so I couldn't access it.</p>
  <p>I don't know what will happen once I do use <code>SplitManager</code> to install it, will I once again have a double activity?</p>
  <p>My only solution right now has been to put the <code>Activity</code> in the <code>App module</code> manifest and only there but that is not a good permanent solution.</p>
  <p>Anyone have any suggestions on how to handle this situation?</p>
  <p>Thanks.</p>
  <p>Edit: I've tried several Android phones with various versions (6,7,10,11) and only the phones with Android 10 seem to have the issue. So maybe it is an Android 10 issue?</p>
  <p>Edit: I have made a simple sample showing the issue: <a href="https://github.com/casolorz/doubleactivityissue" rel="nofollow noreferrer">https://github.com/casolorz/doubleactivityissue</a></p>
  <p>I even tested it on the Android 10 emulator. It will display a count of 2 if it has the issue. A count of 1 if it doesn't.</p>
  <p>I think this is probably a bug, but I don't know if I should submit it to the bug tracker of Android Studio? Android? Google Play Core Library?</p>