Adding icons in EditText for messaging purpose like whatsapp or msn
===

I have researched on Google how to insert icons in EditText. However, most of it is talking about something like: http://stackoverflow.com/questions/4281749/how-to-add-icon-inside-edittext-view-in-android.  
That is adding a static icons.  
However, what I like is adding icons between the text like typing message in MSN or Whatsapp.  First of all, there is a button near the EditText. When clicked, show a dialog that can choose any icons.  After choosing the icons, it will append after the text.  
Is it possible to do it?