title: How to check file size and type of captured video using Android Intent?
body: <p>I'm using <code>Intent</code> for capturing video. Now i want to get the file name, file size and file type of the recorded video.</p>
  
  <pre><code>private String videoPath = "";
  
      @Override
      public void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          if(resultCode==RESULT_OK)
          {
  
            Uri vid = data.getData();
            videoPath = getRealPathFromURI(vid);
          }
  
  
      }
  
      public String getRealPathFromURI(Uri contentUri) {
          String[] proj = { MediaStore.Images.Media.DATA };
          Cursor cursor = managedQuery(contentUri, proj, null, null, null);
          int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
          cursor.moveToFirst();
          return cursor.getString(column_index);
      }
  </code></pre>
  
  <p>I am getting  the file name using the above method <code>getRealPathFromURI()</code>. Now how to retrieve the file size and type? Any help will be greatly appreciated.</p>