Android報「android.content.res.Resources$NotFoundException: String resource ID #0x2」錯誤

Android報「android.content.res.Resources$NotFoundException: String resource ID #0x2」錯誤android 當調用setText()方法時若是傳入int型是不會被當成內容而是resourceID來使用!post 因此報錯!blog 解決方法:TextView.setText("" + arg)io 轉爲String傳入便可
相關文章
相關標籤/搜索