Then I got the menu screen in my app, and there are two separate buttons that should be linked to two different activities, However, whatever I add to the same activity, I code is below.
Public category menu screen extending activity (button btnGoToClassic, btnGoToTowerDef; @ override protected form zero (bundle saved instenstate) {super.Nocrat (savedinstenstate); setContentView (R.layout .activity_menu_screen); BtnGoToClassic = (button) findViewById (R.id.btnGoToClassic); BtnGoToTowerDef = (button) findViewById (R.id.btnGoToTowerDefense); BtnGoToClassic.setOnClickListener (see new. OnClickListener) {Click Public Zero (see V) {startActivity (new intent (getApplicationContext), home screen, class));}}); BtnGoToTowerDef.setOnClickListener Look at both the two of these: OnClickListener () {public void onClick (see v2) {startActivity (getApplicationContext (), TowerDefense.class));}});}
Why is it doing any idea of doing "home screen" (misleading names, names of any of my activities, not the default menu screen)? I have to fix this for a while But no success was found.
Is it possible that some TowerDefense
Area is within screen
start? Try entering the log statement for each of your classes at onCreate
and see the call sequence.
Comments
Post a Comment