I am writing an android app that has both, Java and Kotlin activities. I wished to Move from Kotlin to Java, that is done, now I wish to move back to Kotlin activity, I can't find specific code for that.
My app name is starter and the Kotlin activity is MainActivity.kt and the java class is face_detect.java. I have already tried: `
btn2.setOnClickListener(new View.OnClickListener(){
public void onClick(View v) {
Intent i = new Intent(this, MainActivity.class);
startActivity(i);
}
});
`
I am expecting to click the button on face_detect.java and that would take me to MainActivity.kt