Uri mVideoURI = data.getData(); String result; String [] filepath = {MediaStore.Video.Media.DATA}; Cursor cursor = getContentResolver().query(mVideoURI, filepath, null, null, null); if (cursor == null) { // Source is Dropbox or other similar local file path result = mVideoURI.getPath(); } else { cursor.moveToFirst(); int idx = cursor.getColumnIndex(MediaStore.Video.Media.DATA); result = cursor.getString(idx); cursor.close(); } Log.d("Result",""+result); uploadfilepath=result; videoView.setVideoURI(mVideoURI);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)