title: How to compress files into zip folder in android?
body: <p>I am trying to send multiple files in email, i got the codes for attaching them in the email.</p>
  
  <pre><code>   Intent sendIntent = new Intent(Intent.ACTION_SEND_MULTIPLE);
                         sendIntent.setType("application/octet-stream");
    ArrayList&lt;Uri&gt; uris = new ArrayList&lt;Uri&gt;();
                         uris.add(0, Uri.parse("file://"+Environment.getExternalStorageDirectory()+ "/.file"));
      File f = getActivity().getDatabasePath(".db");
      Log.i(TAG,"DB path"+ f.getAbsolutePath());
      uris.add(1, Uri.fromFile(f));
      sendIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
  </code></pre>
  
  <p>But now, i need to zip them into a single zip file and then i have to send them in the email. Well i saw many answers and ideas but still i can't get some clear ideas. Can you guys help me to solve this problem.</p>