Lines Matching refs:Media
123 // really slow for some reason: MediaStore.Images.Media.insertImage(resolver, file.getAbsolutePath(), file.getName(), file.getName());
137 // We use this instead of MediaStore.Images.Media.insertImage() because we want to add date metadata
141 values.put(MediaStore.Images.Media.TITLE, file.getName());
142 values.put(MediaStore.Images.Media.DISPLAY_NAME, file.getName());
143 values.put(MediaStore.Images.Media.DESCRIPTION, file.getName());
144 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg");
145 values.put(MediaStore.Images.Media.DATA, file.getAbsolutePath());
147 values.put(MediaStore.Images.Media.DATE_ADDED, System.currentTimeMillis());
148 values.put(MediaStore.Images.Media.DATE_TAKEN, System.currentTimeMillis());
151 cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
153 Log.w(TAG, "Error updating media store for " + file, e);