Some code that worked perfectly fine from Android 1.5 on is crashing
for me know after I upgraded by API level for builds to 11. It has to
do with the setAdapater method of AbsListView. The documentation says
now that it was introduced in Android 11. I have this code:
lList.setAdapter(aa);
...
}
private AbsListView lList;
This has *always* worked since Android 1.5, but now with Android
1.5/2.2 etc, I get
java.lang.NoSuchMethodError: android.widget.AbsListView.setAdapter
documentation:
void android.widget.AbsListView.setAdapter(ListAdapter adapter)
public void setAdapter (ListAdapter adapter)
Since: API Level 11
Sets the adapter that provides the data and the views to represent the
data in this widget.
Parameters
adapter The adapter to use to create this view's content.
-------------------------
Have others run into this? Is there a work around?
Thanks,
pawpaw17
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en