title: How to add image in a TextView text?
body: <p>I've searched around on Google and came across this site where I found a question similar to mine in which how to include a image in a <code>TextView</code> text, for example <em>"hello my name is [image]"</em>, and the answer was this:</p>
  
  <pre><code>ImageSpan is = new ImageSpan(context, resId);
  text.setSpan(is, index, index + strLength, 0);
  </code></pre>
  
  <p>I would like to know in this code,</p>
  
  <ol>
  <li>What am I supposed to type or do in the context?</li>
  <li>Am I supposed to do something to the <code>text.setSpan()</code> like import or reference or leave it text?</li>
  </ol>
  
  <p>If someone can break this down for me that would be much appreciated.</p>