MitchBu Well-Known Member Licensed User Longtime User Jul 1, 2019 #1 I want to show a button only if an SD card is present, so I do: B4X: BtnRegisterOpen.Visible = (File.ExternalWritable = True) Unfortunately, the button stays visible, although I removed the SD card. Did I miss something ? Thank you. Last edited: Jul 1, 2019
I want to show a button only if an SD card is present, so I do: B4X: BtnRegisterOpen.Visible = (File.ExternalWritable = True) Unfortunately, the button stays visible, although I removed the SD card. Did I miss something ? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Jul 2, 2019 #2 The "external storage" is actually internal on 99% of the devices. You can use RuntimePermissions.GetAllSafeDirsExternal to find your app specific folder on the sd card (if one is available). See this for more information: ExternalStorage - Access SD cards and USB sticks Upvote 0
The "external storage" is actually internal on 99% of the devices. You can use RuntimePermissions.GetAllSafeDirsExternal to find your app specific folder on the sd card (if one is available). See this for more information: ExternalStorage - Access SD cards and USB sticks
MitchBu Well-Known Member Licensed User Longtime User Jul 2, 2019 #3 That works great. Thank you Erel Upvote 0