android无法显示表情符号图像?

android无法显示表情符号图像?,android,xmpp,Android,Xmpp,我正在制作一个聊天应用程序,其中我正在向用户发送表情笑脸。我的表情笑脸操作部分正常工作。但问题是,当我发送任何表情笑脸图像时,它将以对象形式从中发送,并以对象形式显示,如下所示 我想展示我在蓝色圆圈中指出的微笑。我很困惑,从3天中找到了这个解决方案,但没有成功….,我所做的请帮助pme….,这是我的代码 下面是适配器类 Msg = (TextView) convertView.findViewById(R.id.Msg); //Msg.setText(Html.fr

我正在制作一个聊天应用程序,其中我正在向用户发送表情笑脸。我的表情笑脸操作部分正常工作。但问题是,当我发送任何表情笑脸图像时,它将以对象形式从中发送,并以对象形式显示,如下所示

我想展示我在蓝色圆圈中指出的微笑。我很困惑,从3天中找到了这个解决方案,但没有成功….,我所做的请帮助pme….,这是我的代码

下面是适配器类

  Msg = (TextView) convertView.findViewById(R.id.Msg);
            //Msg.setText(Html.fromHtml(nameAndText[1] ));

            //               TextView textView2 = (TextView)findViewById( R.id.TextView2 );
            SpannableStringBuilder ssb = new SpannableStringBuilder(nameAndText[1]);
            //Bitmap smiley = BitmapFactory.decodeResource( getResources(), R.drawable.emoticon );

            //ssb.setSpan(smiley, 16, 17, Spannable.SPAN_INCLUSIVE_INCLUSIVE );    
            Msg.setText( ssb, BufferType.SPANNABLE );

            System.out.println("<ssssssssssssssss>>>>>>>>."+Msg.toString());
Msg=(TextView)convertView.findViewById(R.id.Msg);
//Msg.setText(Html.fromHtml(nameAndText[1]);
//TextView textView2=(TextView)findViewById(R.id.textView2);
SpannableStringBuilder ssb=新的SpannableStringBuilder(名称和文本[1]);
//位图smiley=BitmapFactory.decodeResource(getResources(),R.drawable.emoticon);
//ssb.setSpan(斯迈利、16、17、SPANABLE.SPAN包括在内);
Msg.setText(ssb,BufferType.SPANNABLE);
System.out.println(“>>>>>”+Msg.toString());
然后点击这个链接

提前谢谢