title: Android - Generate CSV file from table values
body: <p>I have a database containing one table, i want to generate CSV file with values of this table.</p>
  
  <p>Actually, I want to email this CSV file as an attachment. I know about sending file as an attachment in email <code>intent(ACTION_SEND)</code>, but I don't know the procedure of creating or the method by which i can create CSV formatted file.</p>
  
  <p>Please give me suggestions or ideas.</p>