We're finding the same problem as the report quoted below. Briefly, we've a bitmap we want to show in a LiveFolder row. We have the object in memory as a Bitmap. It's not stored as a blob in the local SQLite database
Returning the Bitmap object as the value for the LiveFolders.ICON_BITMAP column (using a MatrixCursor) results in a NPE: E/AndroidRuntime( 3886): java.lang.NullPointerException E/AndroidRuntime( 3886): at com.android.launcher.Utilities.createBitmapThumbnail(Utilities.java: 154) E/AndroidRuntime( 3886): at com.android.launcher.LiveFolderAdapter.loadIcon(LiveFolderAdapter.java: 144) E/AndroidRuntime( 3886): at com.android.launcher.LiveFolderAdapter.bindView(LiveFolderAdapter.java: 93) E/AndroidRuntime( 3886): at android.widget.CursorAdapter.getView(CursorAdapter.java:186) Calling Bitmap.compress() on the Bitmap object and returning the resulting byte array results in the same NPE. If we return a SQL cursor instead of a MatrixCursor and use a blob value from the local db, OTOH, we don't get the NPE. It seems the LiveFolderAdapter code is built to work with a SQLite blob and nothing else. 1) Can anyone give a way to convert a Bitmap object to a SQLite blob? 2) Should this be entered into the issues db, as a documentation error if nothing else? (LiveFolders javadoc defines ICON_BITMAP as "Icon of the live folder item, as a custom bitmap"). thanks, -Harry On May 19, 4:23 am, Flo <[email protected]> wrote: > Hi *, > > Regarding LiveFolders ContentProviders: > Did anyone ever get the per-instance Icon alive using the > LiveFolders.ICON_BITMAP column variant? > > Thehttp://developer.android.com/reference/android/provider/LiveFolders.h... > JavaDoc > > clearly sais it requires a Bitmap instance, but the consumer just > calls a byte[] getBlob() to get the image data. > > see > here:http://www.netmite.com/android/mydroid/donut/packages/apps/Launcher/s... > > looks like a design inconsistency for me --> "cannot work". > > Regarding the fillWindow solution by nEx.Software > fromhttp://groups.google.com/group/android-developers/msg/df827eac13582883 > > Could someone post how this is done? I did not find out how to add a > blob[] as expected by the LiveFolderAdapter layer nor how to add an > entry for an Object like Bitmap. > > Thanks & best regards, > Flo > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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

