I have an android library module and am trying to start activities like
Intent intent = new Intent(mContext, DetailsScreen.class); mContext.startActivity(intent);
I make the request above inside the module and I refer to the module in the app gradle file, for example compile project(':myModule')
I also defined activity in the manifest file of both the application module and myModule, for example
<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 being discovered is an empty activity.
Can someone explain to me what I'm doing wrong?
Thanks in advance:):)
android android-intent module android-studio
Beginner
source share