android-mediascanner Questions
1
I'm trying to use scanFile() to scan a file I have created using DocumentFile. It would appear that this function does not work with a DocumentFile's uri/path. Is there any way to get them to work ...
Ophiuchus asked 23/1, 2017 at 0:52
4
To record a SurfeceView I'm using a 3rd-party library , this library requires a path where the output (the recorded video) saved in my case is savedVideoPath :
mRenderPipeline = EZFilter.input(this...
Sperry asked 13/9, 2019 at 19:47
9
any one guide me how to add some images to emulator image gallery?
Canada asked 19/7, 2010 at 10:6
3
I have a problem trying to get MediaScanner to scan just one directory.
My app takes pictures, and saves them to sd-card/DCIM/AppPictures/, and obviously I need to invoke the MediaScanner for them...
Calcariferous asked 30/11, 2012 at 0:43
2
Solved
I'm trying to save a file as PNG of a canvas where the user can draw something and then call an Intent.ACTION_SEND so that the user can share it's drawing with other apps.
The code is able to save ...
Courtesy asked 13/9, 2020 at 10:44
5
Solved
When deleting the images on Android’s SD Card, sometimes the images are correctly removed but in the gallery still remains a preview of the removed image. When tapping on it, it is loaded as a blac...
Mildredmildrid asked 24/3, 2014 at 9:59
4
I'm scanning files using MediaScanner. But API 28 and 29 don't work.
context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, file));
I used Broadcast, but it didn't work the same...
Pardew asked 16/8, 2019 at 7:6
4
Solved
I am trying to add a new image to the gallery. I pick an already existing image though an intent and then resize and compress it.
Then I store the resulting bitmap:
public static File compressAnd...
Neologism asked 30/1, 2015 at 19:35
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
In Android Q the field MediaStore.Files.FileColumns.DATA has been deprecated, and may be Null or apps have no rights to read it when targeting such OS version, so will be preferable to work using o...
Hate asked 22/3, 2019 at 13:57
4
Question: how to make the media store to refresh its entry of a DELETED file?
After deleting a photo in code from the external storage, I still see a slot for the deleted photo in the gallery - bl...
Axe asked 13/11, 2013 at 13:50
2
Solved
I'm trying to save a file to the Download folder. I get the directory and save the file using something like this:
File exportDir = new File(Environment.getExternalStoragePublicDirectory(Environme...
Kipp asked 2/2, 2018 at 23:33
2
I am developing an app which hides image files in stock gallery app.
For the same, I am creating a .nomedia file and asking MediaScanner to update.
This technique works for a case where I have to ...
Fudge asked 8/4, 2014 at 17:38
5
My Relative layout has two child Rcyclerview (Invisible) and progressbar .
What i want is : Oncreate of layout , recyclerview to invisible and progress bar to show until AsyncTask(getting images ...
Tetrahedral asked 17/5, 2016 at 10:17
1
I have an issue with some devices. I cannot replicate it on any device but I have quite a lot of crash reports reported by some users.
It is this exception:
java.lang.IllegalArgumentException: Un...
Watchman asked 28/1, 2014 at 21:26
2
Solved
I am working on an application in which I have to notify user as soon as a new image, video, audio or apk is inserted by the user by any means (whether he downloads it or transfer it),similar to wh...
Hultin asked 13/10, 2016 at 15:49
2
Solved
I am currently developing an Android Application where users take pictures which are stored in External Memory on the device then I am trying to also get the Gallery to scan the file to add the new...
Cubiform asked 12/7, 2014 at 15:34
6
Solved
I got this class:
import android.content.Context;
import android.media.MediaScannerConnection;
import android.net.Uri;
import android.util.Log;
public class MediaScannerWrapper implements
MediaS...
Montane asked 23/2, 2012 at 14:28
5
Solved
My application downloads jpgs from a website using DownloadManager and store them in the /sdcard/Android/name.app/ directory to be used in several Fragments in the application. The download works g...
Mallorie asked 6/5, 2013 at 3:40
2
Solved
I want to create a Music player which can download a song online and add it to MediaStore. I'm using Download Manager and allow MediaScanner scan this file when download completed.
DownloadManager...
Nonsectarian asked 13/4, 2016 at 4:18
1
Solved
I need to listen to new images that comes from any source like downloading images, capture new images, other apps download images..etc
Is there any listener that will trigger event whenever new pho...
Herodotus asked 8/3, 2016 at 5:39
1
Solved
Changes like renaming a file triggered by an app only appear to the USB-MTP interface after reboot of the Android device or after you registered the new file at the MediaScanner them like this (see...
Disciplinant asked 1/7, 2015 at 9:44
2
I am developing an Android app in which I have to detect changes in Android SD card for audio files with the file name, file path and operation performed upon it. Example if I am adding a file in m...
Address asked 9/4, 2013 at 10:8
2
I'm having a weird problem with my Samsung Galaxy Nexus, where files created and written to in my application are displaying fine when accessed on the phone itself (via ES File Explorer), but...
Springbok asked 22/7, 2013 at 11:38
2
Solved
I am new to android development, i am doing small application to capture USB Camrea image using UVCCamera.
I have captured image using UVCCamera and stored in sdcard like this
File filepath = new...
Commodore asked 3/8, 2015 at 16:35
1 Next >
© 2022 - 2024 — McMap. All rights reserved.