android.content.res.Resources$NotFoundException: String resource ID Fatal Exception in Main

前端 未结 6 1323
攒了一身酷
攒了一身酷 2020-12-05 01:15

I\'ve been trying to make a simple program that fetches a small random number and displays it to the user in a textview. After finally getting the random number to generate

6条回答
  •  离开以前
    2020-12-05 02:01

    Other possible solution:

    tv.setText(Integer.toString(a1));  // where a1 - int value
    

提交回复
热议问题