i'm working on building tablet version of app compatible 1.6 , devices , i'm seeing crash must related sdk problem. i'm using fragment static library able support fragments still backward compatible.
if compile 2.3 sdk libraries, app works on both 2.2 device , xoom fine. however, if compiled 3.0 sdk, app runs fine on xoom, crashes on pre-honeycomb devices exception:
java.lang.nosuchmethoderror: android.widget.abslistview.setadapter
what doing in code crashes setting adapter on gridview class class extends baseadapter.
anyone else seeing this?
thanks, jess
not sure of reasoning behind exception, workaround cast view adapterview (the class defines method in both honeycomb , pre-honeycomb).
abslistview view = (abslistview) findviewbyid(r.id.listview); ((adapterview<listadapter>) view).setadapter(mlistadapter);
Comments
Post a Comment