Android Question FTP Server implemented

jcmartini

Member
Licensed User
Longtime User
I tried to use the example given in:

https://www.b4x.com/android/forum/t...mplemented-with-socket-and-asyncstreams.74320

For me it does not work. Connection seems to be ok with a windows client (Winscp), but the the list of files and directories cannot be done with the following message:
"Unknown command: PORT".
I also changed in the manifest file the targetSdkVersion to 33. I don't know of this error is coming from my change. Is somebody has an idea on how to correct this example ?
 

jcmartini

Member
Licensed User
Longtime User
Thanks, it works... Except that I only see the directories of the phone, not any file. For example "Camera/DCIM" is empty. What Did I wrong ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
your app do not have direct access to this folders if you are using a higher targetsdk
 
Upvote 0

jcmartini

Member
Licensed User
Longtime User
What do you mean ? I tried it with sdk 29, it does not list anay directory. In sdk 30, it list only directories, not any file. Which version should I use ?
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
If this is a non-Google Play app then you can set targetSdkVersion to 28 and request the external storage permission at runtime.

 
Upvote 0
Top