title: How to zip the files in android
body: <p>I have a requirement to zip the text files programatically.</p>
  
  <p>I have created text files at files <code>directory(context.getFilesDirectory())</code>, <br>
  I want zip the text files and add the zipped file to the Intent object.</p>
  
  <p>Please provide me a piece of code to how to zip the files in android. </p>