I try to open an Kotlin Activity from a LibGDX class but I am stuck ...
I already read How to start a Activity of Kotlin from Java android and type something like the example : startActivity(new Intent(context, myKotlinActivity.kt))
The purpose of my code is to redirect the user from a menu to an Kotlin Activity.
@Override
public void handleInput() {
if(Gdx.input.justTouched()) {
dispose();
startActivity(new Intent(context, MyActivity.kt))
}
}
My error is : Cannot resolve method startActivity(Intent)
What am I forgetting ?
Thank you very much and I apologize if it's a dumb question ...