How we can Add text and Smileys in EditText with smileys image
<p>i am working on a app in which i have to make my on softkeyboard in which i have to enter Smileys when user press keyboard key then that Smiley will enter in EditText of Message</p>

<pre><code>String imageInSD = "/sdcard/simley.png";
final Bitmap bitmap = BitmapFactory.decodeFile(imageInSD);

ImageGetter imageGetter = new ImageGetter() {
    public Drawable getDrawable(String source) {
        Drawable d =new BitmapDrawable(bitmap);
        d.setBounds(0, 0,d.getIntrinsicWidth(),d.getIntrinsicHeight());
        return d;
    }
};

Spanned cs =  Html.fromHtml("&lt;img src='"+ imageInSD + "'/&gt;", imageGetter, null);
System.out.println("cs is:- " + cs);
getCurrentInputConnection().commitText(cs.toString(),1);
</code></pre>
