• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


25 Mar, 2025

Updated at 18 May, 2025

How to know enough media Space is avaiable ? API 29+

My Question is relevant to Android Scooped Storage versions such as API 29 and beyond.

I have a to add a media file in which is being received from the Network server , the network server tells me that file is say for example 100 MB ,

I need to add this file to External Public Storage Directory ( Music) through mediaStore API. I understand we can not access File API in public Storage Directories

How can I get to know if there is enough disk space available ? So that I can take the file from Network server and add it to mediaStore without any errors