Skip to content Skip to sidebar Skip to footer

Android: Emoticon Keyboard Unable To Get Emoticon Working On Cursor Adapter

I am using this Emoticon Keyboard. In the project author is using BaseAdapter (link to code) to render selected emoticons on list view. But for my application I am using CursorAdap

Solution 1:

I think there might be some error in saving spanned to database. Save spanned string using

StringhtmlString= Html.toHtml(spannedText);

and get back the same string from database using

Spannedcs= Html.fromHtml(htmlString, imageGetter, null);

and also,

remove readEmoticons() from bindView(..) and call it in constructor make imageGetter global and initialize it in constructor.

Hope it will solve your problem. Thanks...

Post a Comment for "Android: Emoticon Keyboard Unable To Get Emoticon Working On Cursor Adapter"