Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. String[] filePathColumn = {MediaStore.Video.VideoColumns.DATA,
  2. MediaStore.Video.VideoColumns.WIDTH,
  3. MediaStore.Video.VideoColumns.HEIGHT};
  4. cursor = mContext.getContentResolver().query(mVideoUri, filePathColumn, null, null, null);
  5. if (cursor != null && cursor.moveToFirst()) {
  6. mVideoDecodableString = cursor.getString(cursor.getColumnIndex(filePathColumn[0]));
  7. mVideoWidth = cursor.getInt(cursor.getColumnIndex(filePathColumn[1]));
  8. mVideoHeight = cursor.getInt(cursor.getColumnIndex(filePathColumn[2]));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement