Enabling Install on External Storage

Inman

Well-Known Member
Licensed User
Longtime User
I see the option in the IDE to enable app install on external storage. But should we make any changes to the code after doing so? I mean currently I download some images to File.DirInternal. Should I change all the code to File.DirDefaultExternal, when install on external storage is enabled? And should I manually check whether the external storage is writeable?

Also generally, is there any disadvantage to allowing users to install on external storage, other than the fact that it might slow down the app due to lower access rates of SD cards?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is no need to do any change in the code. File.DirInternal is available for you in any case.

Also note that your program will run at the same speed whether it is installed in the storage card or internally.
The only downside for this option is that some devices fail to install applications on the storage card. The reason for this failure is not clear and seems like some bug in the OS.
 
Upvote 0

cmweb

Active Member
Licensed User
Longtime User
Hi,

The only downside for this option is that some devices fail to install applications on the storage card. The reason for this failure is not clear and seems like some bug in the OS.
Are there any further information on that in the meantime?

I have had this problem (install failed) with one Motorola Defy device. An other Motorola Defy could install the apk without any problems.

Best regards,

Carsten
 
Upvote 0
Top