Run time exception error

Clicking on a new screen after moving from one screen to another opens the previous screen again and a runtime exception error occurs.

Are you switcing screens correctly ? What is the error ? Post a screenshot

ERROR SCREENSORT

FIRST SCREEN

When I click on the play quiz button, the screen of another quiz opens.

second “Quiz” Screen


When I click on the quiz button, then the first screen opens.

block screen sort

Can tell what causing the problem, use logcat to identify what causing the crash

Switch screens correctly!
See also tip 1 and 2 here

Taifun