title: How to trim/delete first minute from beginning/end of a .wav recording in android
body: <p>Im trying to delete a part of my .wav file I just recorded, Thing is Im aware that a wav file contains 44 bytes of header data but I want to know how to trim minutes from the beginning of my recorded .wav file, Any answers would be appreciated. Thanks in advance,
  below is my sample code of when I tried to delete like 10 seconds (assuming its 100000 bytes)</p>
  
  <pre><code>     byte fileContent[]= new byte[(int)inputFile.length()];
         try {
          fis.read(fileContent);
          } catch (IOException e) {
         // TODO Auto-generated catch block
              e.printStackTrace();
          }// Reads the file content as byte from the list.
          /* copy the entire file, but not the first 6 bytes */
          byte[] headerlessFileContent = new byte[fileContent.length-1000000];
          for(int j=1000000; j&lt;fileContent.length;j++){
              headerlessFileContent[j-1000000] = fileContent[j];
          }
          fileContent = headerlessFileContent;
          /* Write the byte into the combine file. */
          try {
      fos.write (fileContent);
      } catch (IOException e) {
      e.printStackTrace();
          }
          Toast.makeText(this, "End!!!!!!!", Toast.LENGTH_LONG).show();   
      }
  </code></pre>