I am trying to start an activity from another module in the same project. I use Retrofit Client and at onResponse
I want to start the main activity from another module. I imported the module in my project with "Import new module from Android Studio Bar"
I tried to use Intent with Class.forName()
but it doesn't work, I also tried to add in the manifest the activities. I have the project Lab that contains two modules: app(com.example.lab) and home(he.kome.lis) modules. When I tried to add in app-manifest the activity from home it is red and I get "Unresolved class"
.
This is how my manifest for app looks like:
<activity android:name="com.example.lab.LogInActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:name="he.kome.lis.AddActivity">
</activity>