How to pass String from Kotlin to Java
In Android studio i have two classes, one in kotlin and one in java. How to pass String in Kotlin and receive it in Java class to do next steps with it.
I tried to use Intent:
val intent = Intent(this, MyJavaClass::class.java)
but i received an error and intent have red underline:
None of the following functions can be called with the arguments supplied.
(Context!, Class!) defined in android.content.Intent
(String!, Uri!) defined in android.content.Intent
Maybe there is another way to do...