I want to return a BLOB as a row in a MatrixCursor, however I get the following 
error

05-24 19:20:42.850: E/AndroidRuntime(22661): 
java.lang.UnsupportedOperationException: getBlob is not supported

on top of this stack trace

05-24 19:20:42.850: E/AndroidRuntime(22661):    at 
android.database.AbstractCursor.getBlob(AbstractCursor.java:61)
05-24 19:20:42.850: E/AndroidRuntime(22661):    at 
android.database.CursorWrapper.getBlob(CursorWrapper.java:143)
05-24 19:20:42.850: E/AndroidRuntime(22661):    at 
net.winterroot.android.rhus.RhusMapActivity$OverlayDelegate.onTap(RhusMapActivity.java:139)


MatrixCursor itself DOES seem to implement getBlob(), but the call seems to be 
hitting the AbstractCursor method and not the MatrixCursor method (why ???)


Casting the cursor to MatrixCursor seems like one possible solution but it 
gives a ClassCastException (also don't really understand why this is, since I'm 
definitely returning a MatrixCursor).


What is the canonical solution to this issue?  I've searched a lot on the 
internet, and have found some info on creating a custom cursor (tried it, same 
casting issues as MatrixCursor) or making my own implementation of 
AbstractCursor (not clear how to do it, since this means somehow globally 
replacing AbstractCursor.java )


I've also switch to Android 4.0.3, and at least on my 2.3.3 phone I still get 
these same exceptions.   Please give some pointers if you can, this is really 
frustrating.   There must be some way to just return a blob in a cursor, 
right????


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to