Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get cursor from array

Is it possible to get an android cursor from an array (either ArrayList or StringaArray)?

like image 543
ng93 Avatar asked Jan 25 '26 21:01

ng93


1 Answers

Loxley has one solution: create your own Cursor class, extending AbstractCursor, to wrap around your collection.

Another option to not create an ArrayList, but instead create a MatrixCursor.

like image 151
CommonsWare Avatar answered Jan 27 '26 10:01

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!