Bug? File.DirRootExternal returns internal dir

colin van Blommestein

Member
Licensed User
Longtime User
Version 2.70 Basic4Android

Dim TargetDir as String

If File.ExternalWritable = True then
TargetDir = File.DirRootExternal
msgbox(TargetDir,"External Storage"))
else
TargetDir = File.DirInternal
msgbox(TargetDir,"Internal Storage"))
end if

I'm using a Samsung Note 2 with a memory SD card.
The above code returns the same result with the card in or out.
I can access and write to the card with other programs.

File.DirRootExternal returns the Internal memory path

Appears to be a bug in version 2.70
 

jack shephard

New Member
Hi,
I noticed that when I copied a file to DirRootExternal via my B4A application and then connect my Note3 phone to my PC (via USB cable)
The file can not be seen in windows "My Computer"
But if I run the fileManager of the phone and move the file some where and back to Root, THEN it will be visible on the PC file manager !!!

I think B4A is writing the file with some incorrect attributes on the DirRootExternal.
 

DonManfred

Expert
Licensed User
Longtime User
DirRootExternal is NOT you External (additional) SDCard. It is the SDcard INTERN...

Devices have at least two standard storages. The internal storage and the external storage. If the device also has a SD card then the SD card is the third storage.
This, third, SDCard is the External.
 

fotosettore

Member
Licensed User
Longtime User
So in conclusion, sorry for my stupid questions :

-- >what is the solution for app that searchs for REALLY external sd ?
-- >how can i understand that i'm using the sd i inserted and not inside one ?
in other words : is there a way to determinate exactly the name and the the right way to read/write on it/them ?
many thanks

p.s. android is going more and more towards unnecessary complications ...
 

fotosettore

Member
Licensed User
Longtime User
thanks for reply, erel
this limitation means that for a lot of apps we must downgrade to a lower android version than 4.4
... or use a rooted smartphone ...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…