title: How to get video from camera Intent and save it to a directory?
body: <p>Is it possible to have code similar to the following that does the same for video?</p>
  
  <pre><code>        if (resultCode == Activity.RESULT_CANCELED) {
              // camera mode was canceled.
          } else if (resultCode == Activity.RESULT_OK) {
  
              // Took a picture, use the downsized camera image provided by default
              Bitmap cameraPic = (Bitmap) data.getExtras().get("data");
              if (cameraPic != null) {
                  try {
                      savePic(cameraPic);
                  } catch (Exception e) {
                      Log.e(DEBUG_TAG, "saveAvatar() with camera image failed.", e);
                  }
              }
  </code></pre>
  
  <p>What I am trying to do is to be able to take a video using the Camera Intent and save that video or a copy of that video to my specific directory. This is the code i have to take the clip:</p>
  
  <pre><code>private void initTakeClip(){
      Button takeClipButton = (Button) findViewById(R.id.takeClip);
      takeClipButton.setOnClickListener(new OnClickListener(){
          public void onClick(View v){
              String strVideoPrompt = "Take your Video to add to your timeline!";
              Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
              startActivityForResult(Intent.createChooser(cameraIntent, strVideoPrompt), TAKE_CLIP_REQUEST);
              }
      });
  }
  </code></pre>
  
  <p>I just don't know how to go about then getting that specific video that was just taken and then copying it into my sd/appname/project_name/ directory.</p>
  
  <p>The same is the case for getting the name/file location when adding a clip already from memory to my directory:</p>
  
  <pre><code> private void initAddClip(){
      Button addClipButton = (Button) findViewById(R.id.addClip);
      addClipButton.setOnClickListener(new OnClickListener(){
          public void onClick(View v){
              String strAvatarPrompt = "Choose a picture to use as your avatar!";
              Intent pickVideo = new Intent(Intent.ACTION_PICK);
              pickVideo.setType("video/*");
              startActivityForResult(Intent.createChooser(pickVideo, strAvatarPrompt), ADD_CLIP_REQUEST);
  
          }
      });
  }
  </code></pre>
  
  <p>Any/All help would be appreciated.</p>