Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String[] filePathColumn = {MediaStore.Video.VideoColumns.DATA,
- MediaStore.Video.VideoColumns.WIDTH,
- MediaStore.Video.VideoColumns.HEIGHT};
- cursor = mContext.getContentResolver().query(mVideoUri, filePathColumn, null, null, null);
- if (cursor != null && cursor.moveToFirst()) {
- mVideoDecodableString = cursor.getString(cursor.getColumnIndex(filePathColumn[0]));
- mVideoWidth = cursor.getInt(cursor.getColumnIndex(filePathColumn[1]));
- mVideoHeight = cursor.getInt(cursor.getColumnIndex(filePathColumn[2]));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement