title: Reduce the size of audio file android
body: <p>In my android app take the audio files in the phone and uploaded in server.
  If the file size are too large i need to reduce the audio file size half of the original size.the below code i used ti take the audio file from phone memory.</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);
                  startActivityForResult(intent, 120);
  
  
   @Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          if (resultCode == Activity.RESULT_OK) {
              if (requestCode == SELECT_FILE) {
                  uri = data.getData();
  
              }
          }
      }
  </code></pre>