New devices compatability

tremara1

Active Member
Licensed User
Longtime User
Hi, just a quick general ask, I believe some of the new devices coming out do not have sd card access. Do I have to take this into account when coding using DirDefaultExternal.
thanks again......
 

NJDude

Expert
Licensed User
Longtime User
You can test if the external storage is writable using:
B4X:
If File.ExternalWritable = True Then

   Msgbox("Writable", "")

Else

   Msgbox("Not Writable", "")

End If

You can also test if it's readable:
B4X:
If File.ExternalReadable Then ...
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…