2

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

2
  • Not that I know of. But you could subclass AbstractCursor; Commented Jul 12, 2010 at 15:26
  • Why do you want to do that? You can use arrays as adaptors, and you can jump like in Cursors. Tell us first why you need that. Commented Jul 12, 2010 at 16:28

1 Answer 1

9

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.