Start another activity by clicking a button

前端 未结 2 563
猫巷女王i
猫巷女王i 2021-02-09 09:25

So heres my problem. I set up a button that when clicked should open a new activity but when it is clicked I receive an error: Unfortunately \"app_name\" has stopped working my

2条回答
  •  悲哀的现实
    2021-02-09 10:19

    Probably your code is showing error due to Android manifest file, Try adding proper class in manifest file. Making first activity as main , and other as default.Others part of code is exactly fine.

提交回复
热议问题