mediastore Questions
3
Solved
I have big problems with MediaStore. I need to handle events when MediaStore is changed over MTP. I already have a receiver for android.intent.action.MEDIA_SCANNER_FINISHED action, but it is useful...
Quantum asked 22/9, 2012 at 19:21
1
In Android 11 targeting SDK 30, the files created into the shared folder with MediaStore are not retrieved when the app is reinstalled.
Heehaw asked 11/5, 2021 at 13:38
2
Solved
I've been updating meta data in the MediaStore through a ContentResolver, but this no longer works with Android Q (API 29). The following code gives me a warning, and the description is not updated...
Editorialize asked 23/2, 2020 at 20:12
4
I am trying to find the sqlite database used by the MediaStore. As far as I understand, the MediaStore contains amongst others the playlists defined in the default Music app. I actually would like ...
Aerify asked 28/8, 2010 at 21:16
3
MediaStore.MediaColumns.DATA constant was deprecated in API level Q.
Apps may not have filesystem permissions to directly access this path. Instead of trying to open this path directly, apps shoul...
Komsomol asked 22/4, 2019 at 14:43
6
Solved
I used to save images using MediaStore.Images.Media.insertImage but insertImage method is now deprecated. The docs say:
This method was deprecated in API level 29. inserting of images should
b...
Hypercorrection asked 30/8, 2019 at 12:36
6
Solved
I'm looking for:
A list of the existing photo gallery names (hopefully their top thumbnail as well)
The contents of the gallery (I can then load thumbnails and full size as needed)
How would I go ...
Infectious asked 16/11, 2010 at 15:18
1
According to the docs the RELATIVE_PATH
Added in API level 29
public static final String RELATIVE_PATH
Relative path of this media item within the storage device where it is persisted. For example,...
Lymphadenitis asked 10/5, 2020 at 23:13
3
Solved
Here, this renameFile(..) func is working in Android API 30. But, it is not working in Android API 29 and shows the error like :
java.lang.IllegalArgumentException: Movement of content://media/exte...
Daviddavida asked 23/8, 2020 at 4:32
4
Solved
This started out as a general user question on Android forums. However it's become, by necessity, a programming question. Here's my problem.
Android has a service - MediaScanner - which runs in t...
Airport asked 21/7, 2010 at 14:11
5
Solved
How to get list of video files stored in a specific folder using mediastore? currently i'm using this code
package com.example.videolisttest;
import android.app.Activity;
import android.content.C...
Moulden asked 15/11, 2013 at 17:44
6
Solved
Here is a link to the new Android Q Scoped Storage.
According to this Android Developers Best Practices Blog, storing shared media files (which is my case) should be done using the MediaStore API.
...
Entrammel asked 5/7, 2019 at 13:57
2
I have a requirement to delete screenshot image file after a certain time using background service in my app and it was working fine using the above method
private void deleteTheFile(String path) {...
Noreennorene asked 2/6, 2021 at 2:37
3
I am trying to find method which can handle create and copy of any file except Media files (Picture/Video/Audio) to copy from one place to other in internal storage in Android Q. In this I have my ...
Alagoas asked 28/12, 2019 at 13:2
4
Solved
I have an application on play store to whom the targetSdkVersion is update to 30 from 29, which is getting rejected again and again by Google Play after an update.
Previously, there was a permissio...
Corkscrew asked 19/11, 2021 at 12:42
8
My app creates playlists in the android mediastore. All is well for api's including 28 however, api 29 seems to require additional permissions.
Inserting a new playlist name and id works without is...
Nowhither asked 7/8, 2019 at 16:4
3
Solved
I'm reading thumbnails from the device by querying the MediaStore, using MediaStore.Images.Thumbnails.getThumbnail(). However, this has been deprecated in Android 10 (API 29), with a pointer to Con...
Bonnett asked 20/2, 2020 at 11:18
3
Crash : java.lang.IllegalArgumentException Volume external_primary not found
When querying for tracks from media store, I am getting this crash in some Android 10 devices (Most of them are from Xia...
Microfarad asked 27/7, 2020 at 8:3
2
Solved
On Android 11 my MediaRecorder fails to initialize. I suspect the problem is related to scopedstorage, but I have been unable to figure out the cause. I am using MediaRecorder to record audio from ...
Allspice asked 15/11, 2020 at 16:1
0
For public media folders instead of Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) we can use:
values.put(MediaStore.Media.RELATIVE_PATH, Environment.DIRECTORY_DCIM)
uri...
Diacritical asked 16/8, 2021 at 19:50
0
I am using media-store for listing pdf in recycler view.
Media store does not load non-media files on android 10 and above but works for media files
In build.gradle
compileSdkVersion 30
buildTool...
Proud asked 13/8, 2021 at 11:56
1
I have recently switched my app to Scoped Storage. However, I have noticed that when I share an image from within the app (via an Intent), the GPS location data is removed from the image's Exif met...
Herren asked 19/7, 2021 at 14:23
1
Till now, I check whether a file exists or not and if it does not then I save it to the device in Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) but it is not support...
Communitarian asked 31/5, 2021 at 9:46
7
Solved
I am trying to use the picasso library to loading the image store in the mediastore. When I called load(imageview, callback), the picasso call onFail instead of onSuccess. How do I know why the ima...
Pallaten asked 9/9, 2014 at 12:14
1
I'm getting this exception upon calling MediaStore.createWriteRequest(contentResolver, uris). As in Anrdroid Q and above we have to make createWriteRequest to write on storage. So I'm trying the fo...
Beech asked 21/10, 2020 at 22:48
1 Next >
© 2022 - 2024 — McMap. All rights reserved.