I have an android library module and I'm trying to start an activity like
Intent intent = new Intent(mContext, DetailsScreen.class);
mContext.startActivity(intent);
I'm making above request inside the module and I have referenced the module in app gradle file like compile project(':myModule')
Also i have defined activity in Manifest file of both app module and in myModule like
<activity
android:name="com.test.mymodule.DetailsScreen" >
<intent-filter>
<action android:name="com.test.mymodule.DetailsScreen" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
But the activity which opens is an blank activity.
Can some one kindly explain me what's wrong I'm doing ?.
Thanks in advance :) :)