diff --git a/camera/MultiCameraApplication/AndroidManifest.xml b/camera/MultiCameraApplication/AndroidManifest.xml index 00be801..926832f 100644 --- a/camera/MultiCameraApplication/AndroidManifest.xml +++ b/camera/MultiCameraApplication/AndroidManifest.xml @@ -28,20 +28,6 @@ android:label="@string/app_name" android:theme="@style/AppTheme.NoActionBar" /> - - - - - - - - - - generateThumbnail(File path, int boundingWidthPx, Point dim = resizeToFill(width, height, orientation, boundingWidthPx, boundingHeightPx); - // If the orientation is not vertical - if (orientation % 180 != 0) { - int dummy = dim.x; - dim.x = dim.y; - dim.y = dummy; - } - bitmap = loadImageThumbnailFromStream(stream, width, height, (int)(dim.x * 0.7f), (int)(dim.y * 0.7), 0, MAX_PEEK_BITMAP_PIXELS); @@ -566,7 +561,6 @@ public static Optional getMediaDetails(Context mContext, ContentVa final DateFormat mDateFormatter = DateFormat.getDateTimeInstance(); if (info.get(MediaStore.Video.Media.MIME_TYPE).equals("video/mp4") == true) { - File file = new File(info.getAsString(MediaStore.Video.Media.DATA)); mediaDetails.addDetail(MediaDetails.INDEX_TITLE, info.get(MediaStore.Video.Media.TITLE)); @@ -598,7 +592,6 @@ public static Optional getMediaDetails(Context mContext, ContentVa mediaDetails.addDetail(MediaDetails.INDEX_DURATION, duration); } else if (info.get(MediaStore.Video.Media.MIME_TYPE).equals("image/jpeg") == true) { - File file = new File(info.getAsString(MediaStore.Images.ImageColumns.DATA)); mediaDetails.addDetail(MediaDetails.INDEX_TITLE, info.get(MediaStore.Images.ImageColumns.TITLE)); mediaDetails.addDetail(MediaDetails.INDEX_PATH, diff --git a/camera/MultiCameraApplication/java/com/intel/multicamera/VideoRecord.java b/camera/MultiCameraApplication/java/com/intel/multicamera/VideoRecord.java index 6be8c7c..8c38d64 100644 --- a/camera/MultiCameraApplication/java/com/intel/multicamera/VideoRecord.java +++ b/camera/MultiCameraApplication/java/com/intel/multicamera/VideoRecord.java @@ -144,8 +144,8 @@ public void onError(MediaRecorder mr, int what, int extra) { // from MediaRecorder.OnInfoListener @Override public void onInfo(MediaRecorder mr, int what, int extra) { - String[] VideofileDetails = new String[0]; if (what == MediaRecorder.MEDIA_RECORDER_INFO_MAX_FILESIZE_APPROACHING) { + String[] VideofileDetails = new String[0]; Toast.makeText(mActivity, R.string.video_reach_size_limit, Toast.LENGTH_SHORT).show(); if (mIsRecordingVideo) {