title: Activity communication between custom flavor packages
body: <p>I'd like to use a custom <code>Activity1</code> class for a specific gradle flavor, but when I try to launch that activity from an <code>MyActivity</code>  under <code>/main</code> it doesn't recognize <code>Activity1</code>  as a class. How can I build this communication, and where should I include <code>Activity1</code> in a manifest file, under <code>/flavor1</code> or under <code>/main</code>? My project structure:</p>
  
  <pre><code>|--src/
     |--flavor1/
      |--java/
        |  |--Activity1.java
     |  |--res/
     |     |--layout/
     |     |  |--activity1.xml   
     |--main/
        |--java/
        |  |--MyActivity.java
        |--res/
        |  |--layout/
        |  |  |--activity_main.xml
        |  |--...
        |--AndroidManifest.xml
  </code></pre>
  
  <p>I am adding in gradle:</p>
  
  <pre><code>sourceSets {
      flavor1.java.srcDirs 'src/flavor1/java'
  }
  </code></pre>
  
  <p>And in <code>MyActivity</code> from <code>/main</code> I get: </p>
  
  <blockquote>
    <p>Cannot resolve symbol Activity1</p>
  </blockquote>
  
  <p>P.S. As an alternative might be using of broadcast receivers byun I am not sure if that's a good approach</p>