0

Onlclicklistener crashes app

When I use the onlicklistener for a button that goes to another activity whenever I click it, it crashes the app. CODE: mgotologin.setOnClickListener((v) -> { startActivity(new Intent(getApplicationContext(),Login.class)); });

10th Jul 2021, 2:55 PM
FlyAvalanYT
FlyAvalanYT - avatar
1 Antwort
0
Please tell me what went wrong!!
10th Jul 2021, 2:56 PM
FlyAvalanYT
FlyAvalanYT - avatar