我想從sqlite數據庫生成一個列表視圖,但 LOGCAT顯示錯誤。 以下錯誤代表什麼意思?得到logcat錯誤,因爲不能被鑄造
09-23 12:01:20.354: E/AndroidRuntime(3682): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.abhishekp.listproduct/com.abhishekp.listproduct.List}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.ListView
這意味着你正試圖從'TextView'投射到'ListView'。你需要告訴我們一些代碼,以找出它發生的地方,以及如何解決它 – CodingIntrigue
發表相應的代碼花花公子 –
沒有代碼沒人可以幫助你花花公子 –