Android App Crashes on Button Click

前端 未结 4 365
野性不改
野性不改 2021-01-26 05:54

I have been attempting to make my first android application (a simple temperature converter) in Eclipse, but when I click the button on my phone the app crashes. Here is the ful

4条回答
  •  一向
    一向 (楼主)
    2021-01-26 06:30

    You can not set Integers to TextViews. You have to convert them into Strings.

    myTextView.setText(String.valueOf(output));
    

提交回复
热议问题