title: delete multiple checked files from internal storage
body: <p><strong>TL;DR</strong></p>
  
  <p>How to delete multiple files, file names got from <code>util.myPos</code></p>
  
  <hr>
  
  <p><strong>FULL EXPLANATION</strong></p>
  
  <p>I can delete one file by using <code>deleteFile("fileName")</code> method</p>
  
  <p>But how do I delete multiple files at once?</p>
  
  <p>All the names are listed in an <code>ArrayList</code></p>
  
  <p>Java code to check/uncheck while adding file name to <code>ArrayList</code></p>
  
  <pre><code>OnItemClickListener getFileEditContent = new OnItemClickListener() {
      @Override
      public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
          String clickedFile = (String)parent.getItemAtPosition(position);
          setMultiEdit(clickedFile);
  
          // change the checkbox state
          CheckedTextView checkedTextView = ((CheckedTextView) view);
          if (checkedTextView.isChecked()) {
              ((CheckedTextView)view).setChecked(true);
              checkedTextView.setChecked(!checkedTextView.isChecked());
  
              utils.myPos.remove(stringEditData);
  
              count--;
              if(count &lt;= 1){
                  multiEdit.setEnabled(true);
              }
  
          } else{
              checkedTextView.setChecked(!checkedTextView.isChecked());
              utils.myPos.add(stringEditData);
  
              count++;
              if(count &gt;= 2){
                  multiEdit.setEnabled(false);
              }
  
          }
      }
  };
  </code></pre>
  
  <p>Codes to delete the file</p>
  
  <pre><code>void setMultiDelete() {
      multiDelete.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              if (utils.myPosTitle == null || utils.myPosTitle.isEmpty()) {
                  Toast.makeText(addressActivity.this, "Select address", Toast.LENGTH_SHORT).show();
              } else {
                  String content = utils.myPosTitle.toString();
                  String cutContent = content.substring(content.indexOf('[') + 1, content.lastIndexOf(']'));
                  deleteFile(cutContent);
  
                  Toast.makeText(addressActivity.this, "Deleted", Toast.LENGTH_SHORT).show();
                  showDirFile(dataDr);
                  utils.myPos.clear();
                  count = 0;
                  ArrayAdapter&lt;String&gt; adapter
                          = new ArrayAdapter&lt;String&gt;(addressActivity.this,
                          android.R.layout.simple_list_item_multiple_choice,
                          SavedFiles);
                  listView.setAdapter(adapter);
              }
  
          }
      });
  }
  </code></pre>
  
  <p><strong>Note</strong> This code only deletes one file</p>