How to check if MicroSD Card exists. (Using Extension)

How do I check if a MicroSD Card is inserted using an extension. I have been searching on Google and no luck. I need help with doing this. Please suggest any extension that can check if a MicroSD Card is inserted.

you can try the file extension and its AvailableStorageDirectories method, which returns a list of available storage directories
if the length of that list is 1 then there is no external sdcard available
https://puravidaapps.com/file.php

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

So the solution is to check for the /mnt/sdcard/ folder?

try that method and use Do it to find out, what will be returned...

and as mentioned earlier

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.