Calling an activity inside a android library module
<p>I have an android library module and I'm trying to start an activity like </p>

<pre><code> Intent intent = new Intent(mContext, DetailsScreen.class);
            mContext.startActivity(intent);
</code></pre>

<p>I'm making above request inside the module and I have referenced the module in app gradle file like <code>compile project(':myModule')</code></p>

<p>Also i have defined activity in Manifest file of both app module and in myModule like</p>

<pre><code>  &lt;activity
            android:name="com.test.mymodule.DetailsScreen" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="com.test.mymodule.DetailsScreen" /&gt;
                &lt;category android:name="android.intent.category.DEFAULT" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
</code></pre>

<p>But the activity which opens is an blank activity.</p>

<p>Can some one kindly explain me what's wrong I'm doing ?.</p>

<p>Thanks in advance :) :)</p>