title: android - How to format the text as table in email body of email client
body: <p>I have to format the text as table in the email body of email client. But i read somewhere android doesn't<br>
  support 
   <strong>&lt; table></strong> tag. Is any other alternative is there for doing this? I tried a lot but still i am not finding any good solution. Please can anyone help me.</p>
  
  <pre><code>code
  </code></pre>
  
  <p>String body = "&lt; table border="+"1"+">&lt; tr>&lt; td>row 1, cell 1&lt; /td>"+
          "&lt; td>row 1, cell 2"+
          "&lt; /tr>"+
          "&lt; tr>"+
          "&lt; td>row 2, cell 1&lt; /td>"+
          "&lt; td>row 2, cell 2&lt; /td>"+
          "&lt; /tr>"+
          "&lt; /table>"; </p>
  
  <pre><code>final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
  emailIntent.setType("text/html");
  emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject.getText());
  emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(body).toString());                    
  startActivity(Intent.createChooser(emailIntent, "Email:"));
  </code></pre>
  
  <p><strong>Actual Output is this</strong></p>
  
  <p><img src="https://i.stack.imgur.com/J1wi2.png" alt="enter image description here"></p>
  
  <p><strong>But I Expected output is similar to following:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/pST4O.png" alt="enter image description here"></p>