Basically I have an old RecyclerView
with an Adapter
that uses the Cursor
directly. As far as I understand it, this isn't ideal because any time I do a Cursor
operation like moveToNext()
or similar, it performs disk IO, right? and that is happening on the UI thread.
So what is the recommended way for me to implement an infinite (basically keep loading items as the user scrolls) RecyclerView
with ContentResolver
to display videos or images stored on the phone?
Thanks.
ContentResolver
? – casolorz Nov 8 '18 at 15:03