try to download at extsd permission denie

kalarius

Active Member
Licensed User
Longtime User
hi,

when I write to my code the follow
mFtp1.DownloadFile("/avifiles/verison.txt",True,"/mnt/sdcard/","version.txt")
it download the file and store it to internal sd card

when I try the

mFtp1.DownloadFile("/avifiles/verison.txt",True,"/mnt/extsd/","version.txt")

***extsd is the external sdcard
it return

libcore.io.ErrnoException: open failW EACCES (Permission denied)


into the manifest file there is the
android.permission.WRITE_EXTERNAL_STORAGE

Help

Kalarakis
 

JonPM

Well-Known Member
Licensed User
Longtime User
Why not use one of these instead:
File.DirRootExternal
or
File.DirDefaultExternal

?
 
Upvote 0

Informatix

Expert
Licensed User
Longtime User
hi,

when I write to my code the follow
mFtp1.DownloadFile("/avifiles/verison.txt",True,"/mnt/sdcard/","version.txt")
it download the file and store it to internal sd card

when I try the

mFtp1.DownloadFile("/avifiles/verison.txt",True,"/mnt/extsd/","version.txt")

***extsd is the external sdcard
it return

libcore.io.ErrnoException: open failW EACCES (Permission denied)


into the manifest file there is the
android.permission.WRITE_EXTERNAL_STORAGE

Help

Kalarakis

It seems that it's impossible to write on the external card (I mean cards in an external slot) of some devices if they are under ICS or JellyBean. Do you have an application able to write on that card?
 
Upvote 0

kalarius

Active Member
Licensed User
Longtime User
hi,

for jonpm
the DirRootExternal on my device is the internal sdcard of 1GB
=/mnt/sdcard
and the external sd card is /mnt/extsd

for informatix
the SBS lib commands and the FILE can read and write to the external sdcard

One solution it will be that I download the file to internal SD and then copy with File.copy to external BUT the avi file that I want to download is bigger than 1G so I can not download to internat sd and then copy to external

my device is MK802 ver android 4

Kalarakis
 
Upvote 0
Top