I am writing an application for an Andriod tablet (3.2) that plays media that in my case is stored on a USB stick. However, I noticed that when the USB stick is NOT plugged in, the ContentResolver returns songs that are stored on the USB stick. Is there a way to make sure my content resolver only returns media that can actually be found in the filesystem? I.E. stop showing me songs on a USB stick that isn't plugged in right now?
Android ContentResolver with data on a USB stick
479 views Asked by gillonba At
1
There are 1 answers
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in MEDIA-PLAYER
- Pyqt Display Video Thumbnail At Given Time Line
- Detect the voice of multiple person speaking
- My customized media player won't work with GeForce RTX
- What control should I use to play videos in .NET 6 app?
- Getting the duration of audio data in NextJS
- Playing an audio file stored on MongoDB Atlas
- How to update Kaltura player config when the playlist item is being switched?
- Error in Playing .mp4 video using Java Springboot
- How to play audio files synchronously (sequentially... one at a time... one after the other)? Kotlin/Android Studio
- Trying to sync the react players outside of home component using cleanup function but it is not working
- How to create and write to a virtual video device on Linux using C?
- How to load Media from Media server in React Native?
- Media player error Exception occurred during processing of request
- How can I hijack the twitter embedded post play back button in Android
- 'The system cannot find the file specified. ' when the count of the files is larger than 0
Related Questions in ANDROID-MEDIAPLAYER
- onCompletion(mp: MediaPlayer?) is unintentionally called after USB storage is connected
- Android Media3: App launched from tapping media notification but extras from PendingIntent are not set
- Android media library, how to start media download only when needed?
- Using MediaPlayer slows down SoundPool sound effect
- Media3 notification: How to update title dynamically during playback
- Android Media3: How to split HLS stream into multiple mediaitems each with own range
- How to listen to media session events of another app
- Unity VideoPlayer cannot play iPhones videos on Android
- How to run Android MediaPlayer
- In Android Media3 MediaSessionService how to specify HLS streaming source
- Android Jetpack Compose Media3 HLS Stream with playback service
- Callback invocation in Android when Google Assistant starts listening
- Android Media3 (ExoPlayer): How to set defaultPositionUs of a Window in the Timeline?
- Changing the video scale (Android Java)
- Playing Audio files in chunks and downloading
Related Questions in ANDROID-CONTENTRESOLVER
- How can I get JSON file with webview from local html
- ContentResolver.query() on MediaStore Uri works only for Android API 31+ - MediaStore.getMediaUri() BUG?
- Getting error when try to get Uris for multiple contacts emails via contentResolver query
- Runtime error on working with flutter on Android Studio
- Calendar Provider - Insert Event Not Working on SDK Version 34 (Android 14)
- Content Provider: when try to access data in contentResolver,cursor object is null in Android 13
- ContentResolver.takePersistableUriPermission() has no documented error possible yet evidently can occur
- Are Content Provider Column id's always unique no matter the case?
- Android FileObserver events not working as expected
- Can't update SIM contacts using ContentResolver
- Event added using content provider isn't saved
- ContentResolver - can't open inserted file on Android API 29+
- ContentResolver.insert() creates audio file of "audio/aac" mime type with .aac extension instead of .m4a
- On Android 11, after renaming media files on a removable micro-sd card, MediaStore can‘t be updated through the ContentResolver.update() method
- Android call log query giving no such column: verstat (code 1 SQLITE_ERROR)
Related Questions in USB-FLASH-DRIVE
- Is deleting all partitions on USB is safe?
- STM32L072 USB Flash Drive
- Is it possible to rename a USB flash drive and transfer files onto that drive?
- How do I use a PowerShell script to eject all mass storage drives?
- Problems with removable storage Hololens 2, unity and xamarin uwp
- How to write data in ESP32-S2 internal ROM?
- creating a cd-rom-area on a USB flash drive
- MacOS Python script executable
- Can't mount a permanently installed USB flash drive to the mount point of my choosing with Raspian 10
- How to prevent windows from accessing and detecting new volumes while writing a raw image file to PhysicalDrive?
- How to Set WMIC in for loop Flashdrive get model, file system and size in gigabyte?
- Error formatting USB flash (Read-only file system)
- Is it possible to write a program on flash drive (pen drive) to perform a task on inserting flash drive into USB port?
- Can't write file in USB flash drive with Xamarin Android/Uwp
- Running SAS 9.4 from a flash drive
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I never did find a way to force a refresh, but it looks like Android does refresh its database periodically on its own. Not sure how 4+ handles it