When using an ImageView to display a contacts photo, I see many errors
of the form:

ERROR/MemoryFile(28791): MemoryFile.finalize() called while ashmem
still open

These occur when the view is scrolled and appear to only happen when a
contact with a photo scrolls into view.  There is no stack trace and
my application is not doing anything unusual to handle scrolling.  The
photo's are shown correctly and from a user perspective all appears to
work fine.

I'm using a layout like:

<TwoLineListItem>
    <RelativeLayout>
        <ImageView />
        <TextView  />
        <TextView  />
     </RelativeLayout>
</TwoLineListItem>

These are associated with a <ListView /> component using a standard
ListActivity and ListAdaptor pattern to set a MatrixCursor of
contacts.

The contact's photo is associated with the ImageView using a URI in
the form of:

Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI,
Long.valueOf(id));
Uri photoUri =
Uri.withAppendedPath(contactUri,Contacts.Photo.CONTENT_DIRECTORY);

Has anyone else experienced a similar issue when scrolling ImageViews?

Thanks.





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

Reply via email to