开发者

the application has stopped unexpectedly

开发者 https://www.devze.com 2023-01-08 00:22 出处:网络
I have built a game. When the user clicks a button on the main page, he is redirected to another activity for a predefined time(say 20 s) and then he returns to the main page where he can choose anoth

I have built a game. When the user clicks a button on the main page, he is redirected to another activity for a predefined time(say 20 s) and then he returns to the main page where he can choose another button. Now, this works perfectly on the emulator but on the phone when I clicks another button on the main开发者_开发问答 page, it says the application has stopped unexpectedly. Force close. However, if I wait for say 3 s before clicking another button, it works. Is it because the images on the background of the buttons are too heavy?? Kindly help. Thanks in advance.


hey! i found out what was wrong. There was one picture which was too heavy!! it works fine now :)


Sometimes this error results from the widget like textview and so on, please delete the line related to something like textview.

0

精彩评论

暂无评论...
验证码 换一张
取 消