Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x64 異常的產生和處理

問題:Android程序運行出現這個錯誤,提示出現異常的位置是setText();spa 緣由:應該傳入的參數是String類型的數據,而此處傳入的是int類型的數據(ps:TextView.setText()方法的參數是String類型的數據,而Progressbar.getProgress()返回值是int類型);get 處理:把mTextViewLife.setText(mProgressB
相關文章
相關標籤/搜索