How to display Smileys over TextView using ImageSpan in android

by Mannar » Fri, 13 Mar 2009 17:46:03 GMT

Sponsored Links
i am implementing small messenger application,
In the chat conversation window i want to display the smileys along
with text in the textView.
Can anybody help for me regarding this issue.


Other Threads

1. Communicating between multiple Apps/Widgets?

That might work... I haven't ever messed with those methods though so I
don't know for sure.

When I need to get information from a widget that I have created, I have the
widget create a key/value pair in SharedPreferences and have my activity
retrieve it from there.  AFAIK there is no way to do direct communication
with a widget.

There are only 10 types of people in the world...
Those who know binary and those who don't.

> > > 

2. RadioButton setChecked not working on configuration change

Hello, I am trying to set a RadioButton as checked/not checked through
code. It is working the first time I set it, but the second time, the
code does not set the button. Here is the relevant part of my code. I
have commented on the problematic part.

private boolean val;
    protected void onCreate(Bundle savedInstanceState) {

        // after orientation change, get the value
        final Object obj = getLastNonConfigurationInstance();
        if (null != obj) {
            val = (boolean)obj;

 private void init() {
   RadioButton rb = (RadioButton) findViewById(;
  //This is working the first time init() called. But second time its
called on configuration change, not working.
    public Object onRetainNonConfigurationInstance() {
        return val;


3. HTC Incredible - images not showing up in Gallery

4. HTC Incredible - images not showing up in Gallery

5. string-array max size?

6. How capacitive is capacitive?

7. The Android emulator runs too slowly.