Destination storage is write protected

sirjo66

Well-Known Member
Licensed User
Longtime User
Hello to all ;)

With my PC, I copy a file into my Android (connected by USB cable) into File.DirDefaultExternal

My B4A program (that's running on Android), see this file, read it, execute a command, and then delete it.

All works fine !!

But then, if I want to copy another file into File.DirDefaultExternal, my PC can't do it and the error is "I can't copy the file. Destination storage is write protected". :(

How to solve it without disconnect and re-connect USB cable ??

Thanks
Sergio
 

sirjo66

Well-Known Member
Licensed User
Longtime User
You can try to kill the app process by calling ExitApplication.

Thanks for your reply, but I need that the program waiting for another file.

I have also try to add ExitApplication for a test but it don't works, I need to disconnect a connect USB cable :sign0085:

Sergio
 
Upvote 0

sirjo66

Well-Known Member
Licensed User
Longtime User
Not sure that you can workaround this. Why don't you transfer the files over the local network? It can be done with SMB library.

Yes, I think that it's not a good idea to use files on folder :(

I'am already working on HttpServerService for to accept command from a PC by WiFi connection

Thanks
Sergio
 
Last edited:
Upvote 0
Top