0

I was just wondering is it possible to extract few rows from a Android Cursor and save them in another Cursor?

Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166

1 Answers1

2

You could create a MatrixCursor based on data from the original Cursor.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Thanks @CommonsWare Can you point towards an example, tutorial, book or implementation? – Gaurav Agarwal Jun 01 '12 at 21:21
  • @blackcrow: `MatrixCursor` has a fairly simple API. What specifically are you having problems with? – CommonsWare Jun 01 '12 at 21:29
  • I just wanted to look at the example I found here http://stackoverflow.com/questions/1882156/using-matrixcursor-and-simplecursoradapter-in-a-listview-with-text-and-images and here http://www.androidadb.com/class/android/database/MatrixCursor.java.html – Gaurav Agarwal Jun 01 '12 at 21:31