1

Unable to get the duration of the video

view story
linux-howto

http://stackoverflow.com – Uri selectedVideo = intent.getData(); String[] filePathColumn = { MediaStore.Video.VideoColumns.DATA, MediaStore.Video.VideoColumns.DURATION, MediaStore.Video.VideoColumns.SIZE, MediaStore.Video.VideoColumns.DATE_TAKEN}; Cursor cursor = getContentResolver().query(selectedVideo, filePathColumn, null, null, null); cursor.moveToFirst(); int columnIndex1 = cursor.getColumnIndex(filePathColumn[0]); int columnIndex2 = cursor.getColumnIndex(file (HowTos)