How To Fix Java.lang.ClassCastException Android
I have searching for this case, i found it but in C#. Oke, I try to show my data into the listview using ListFragment android, json and mysql, but i got an error Class Cast when I
Solution 1:
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.
Caused by: java.lang.ClassCastException: com.spp.udi.sppmap.Potensi cannot be cast to android.app.Activity
You are using android inbuild Listview @+id/android:list
So, Please extends ListActivity instead of ListFragment .
public class Potensi extends ListActivity{
Post a Comment for "How To Fix Java.lang.ClassCastException Android"