New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Are you trying to run it here in Sololearn Playground or is it copied from Android Studio?
+ 1
fist of all, you dont need those try and catch.
second: to call another "page" in your app use intends (
Intend nextClass = new Intent(this, yourOtherClass.class)
startactivity(nextClass)
(remember it is your class ".class" not ".java")
and third: that is probably what is crashing the app: you cant modify a view of another screen, so go intro your java folder in your project and modify in the right scene
0
No probs! have fun!