mediastore Questions

32

Solved

I have an onActivityResult returning from an mediastore image selection which I can get a URI for an image using the following: Uri selectedImage = data.getData(); Converting this to a string gi...
Kaolinite asked 3/8, 2010 at 23:46

4

Solved

I'm creating a simple image editor app and therefore need to load and save image files. I'd like the saved files to appear in the gallery in a separate album. From Android API 28 to 29, there have ...

3

Solved

Scenario I've two apps, one is the Tracker App which records the incoming and outgoing calls and zipped these files, and sends the file path to the Main App via Inter-Process Communication which up...

5

I am updating my app to use Scoped Storage feature introduced in Android 10. My app works with MediaStore and displays images, videos and audio files and provides ability for user to delete item. ...
Saiva asked 16/3, 2020 at 9:0

4

Solved

I have a recycler view within a fragment and basically I m trying to load song list in the recycler view .Each row of recycler view contains an imageview (for album art) and textview ( for song nam...
Poseidon asked 3/6, 2017 at 19:38

1

My app needs to save a string in a text file in Download folder. Currently (target: API 29 (Q) I am using the FILE API with : <uses-permission android:name="android.permission.READ_EXTERNAL...
Semiquaver asked 15/1, 2021 at 21:45

8

I have some code where I run the method MediaStore.Images.Media.insertImage (inserting it from a source not a file name), This code saves the image to the MediaStore and returns the uri of the imag...
Laevo asked 1/9, 2012 at 19:57

2

Solved

I retrieve following values from the media store MediaStore.Images.Media.DATE_TAKEN MediaStore.Images.Media.DATE_MODIFIED And read the dates from the result like following: int dateTakenColumn ...
Milwaukee asked 23/12, 2015 at 19:3

2

Solved

I'm trying to delete audio files from the device's external storage (for example in the /storage/emulated/0/Music folder). After analyzing the MediaStore sample, I ended up with the following solu...
Pt asked 8/10, 2019 at 9:41

1

Solved

My code runs perfect on any Android lower then Android 11. On Android 11 (specifically on Pixel2 & Pixel3 emulator and real devices) the file descriptor fail to find the file after inserting it...
Actinia asked 13/9, 2020 at 8:5

1

Solved

I am trying to use MediaStore.Images.Media.DATE_TAKEN and getting warning from Android Studio IDE that it requires API 29 (Android Q). The official Google documentation here says this was Added in ...
Brahman asked 15/10, 2020 at 17:20

2

Use-Case: Here, I can create and save files in local storage using MediaStore and get all the files from MediaStore. But Once I clear-storage or reinstall the app, the files will no longer be avail...
Raskind asked 26/8, 2020 at 8:0

0

I have inserted new video in MediaStore like this, val resolver = requireActivity().applicationContext.contentResolver val videoCollection = MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_E...
Disregard asked 3/8, 2020 at 1:34

1

I am using the MediaStore and ContentResolver API to save image files (jpg/png/gif) using MediaStore.Images. It works, but the problem is that all the files are saved with the .jpg extension and th...

0

How to update album metadata of audio file in Android Q media store? I tried the answer suggested, https://stackoverflow.com/a/60152702/4732846, it worked. But this works for individual tracks. I...

1

Solved

I am using the following to store images created in my app in the gallery of Android: MediaStore.Images.Media.insertImage(contentResolver, bitmap, "SomeTitle", "Description"); This will store t...
Does asked 22/3, 2020 at 11:33

1

Solved

I recently upgraded the app's target version to API 29. Due to the scoped storage in Android 10, i used MediaStore API to store and retrieve images from app external storage. Earlier, i used getExt...

5

I am attaching the Bitmap to the Imageview by storing in the MediaStore. It works fine in all the device below android 10, but when crash occured in pixel. My android id targeted to sdk 28 try { ...
Mollusc asked 21/10, 2019 at 13:51

3

Solved

Updating metadata of audio file in media store is not working in Android Q OS, it works in all other OS. I am using content provider with uri specified as MediaStore.Audio.Media.EXTERNAL_CONTENT_U...

2

Solved

Background After migrating to Android Q I can no longer find a suitable way to gain write access to the documents folder (/storage/emulated/0/Documents) And before anyone mentions the many other ...
Melindamelinde asked 12/2, 2020 at 0:18

1

Solved

Android Q: I need to get a list of images from a specific directory I saved images on it and display these images on my app. Save images code: final String relativeLocation = Environment.DIRECTOR...
Twelvemonth asked 2/2, 2020 at 8:52

2

Since the changes related to the authorizations of access to the shared storage, it does not seem any more possible to search all the documents of the type pdf by this approach (with requestLegacyE...
Provender asked 4/11, 2019 at 8:59

2

I'm trying to save a video to the gallery,the following code works well an all Android versions except the Android Q: private void getPath() { String videoFileName = "video_" + System.cu...
Outofdate asked 13/9, 2019 at 12:4

1

I was planning to query the MediaStore.Images.Media.BUCKET_DISPLAY_NAME field, but Android Studio says it's only available on API 29+. Also, the Android docs say the same. However, I have found th...
Sharonsharona asked 2/9, 2019 at 16:26

1

With the newer Android Q many things changed, especially with scoped storage and gradual deprecation of file:/// URIs. The problem is the lack of documentation on how to handle media files correctl...

© 2022 - 2024 — McMap. All rights reserved.