Jaime
09/08/2022, 10:47 PMandroid.content.ActivityNotFoundException: Unable to find explicit activity class {package/packgae.OtherActivityInFeatureModule}; have you declared this activity in your AndroidManifest.xml?
I was seeing that it is added in the manifest-merge but I still have the error
I am creating the intent like this
fun intentToClear(intentActivity: IntentActivity, bundle: Bundle? = null): Intent {
val intent = Intent(Intent.ACTION_VIEW).setClassName(PACKAGE_NAME, intentActivity.className)
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK)
bundle?.let {
intent.putExtras(it)
}
return intent
}
Erick Sanchez
09/09/2022, 3:56 PMintentActivity.className
maybe something is weird here.
But the more common solution is that your Activity
is inside a custom package so you have to add in the manifest
the custom package before the name of activityJaime
09/09/2022, 4:09 PMModulePackage.ui.ModuleActivity
Jaime
09/09/2022, 4:10 PM<activity
android:name=".ui.ModuleActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize"
android:theme="@style/Theme.Hapi.NoActionBar" />