I’m having a rather bizarre issue at the moment.
I have an activity written in Kotlin.
The issue comes when I try to start a new activity from my kotlin activity.
-- startActivity(Intent(this, SearchResultsActivity::class.java))
If I try to launch an activity written in Kotlin it just launches a blank activity.
Unless I launch the current activity again.
If I try to launch an activity written in Java is works as expected.
The activity I am trying to launch IS in the manifest, and when I take it out of the manifest
I get the error that it isn’t in the manifest.
I am debugging and the onCreate in my super super simple kotlin activity I am launching is never being called.
It looks like android is just launching a sort of DEFAULT or blank activity instead.
EDIT: Actually if I change the launch activity to any other activity besides my StartActivity in kotlin onCreate doesn’t get called and the activity is blank.
This is probobly the most confusing issue I’ve had in the past 2 years of professional dev.