j256 / ormlite-android

ORMLite Android functionality used in conjunction with ormlite-core
http://ormlite.com/
ISC License
1.59k stars 367 forks source link

CursorLoader and Support Library #31

Closed dnlbauer closed 9 years ago

dnlbauer commented 10 years ago

Hey,

Once there were support versions for apptools.OrmLiteCursorAdapter and apptools.OrmLiteCursorLoader located in apptools.support but they seem to have been removed. Whats the reason for this?

This makes it really hard to implement CursorAdapters below Api v11 without fiddling around cursors.

j256 commented 9 years ago

It this needed @danijoo ? I removed them by accident a while back.

dnlbauer commented 9 years ago

I worked arround this for now. The reason why there should be a support version is: Fragments. A lot of people use the support version of fragments and they use the support version of LoaderManager by default (which is not compatible with the non-support version of OrmLiteCursorLoader).

As a workarround you can still use the activities CursorLoader in such a case, but this can cause clashes in Loader ids and stuff like that.