Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WM20] - How to save a file to Download folder in Android -OR-..... (no replies)

$
0
0
Hello,

I have a need where in I need to download a file from server and save it to either Download folder/director as provided by Android -OR- create a folder in such a way that other software can access that folder and files within it.

I am currently using the following code:
gsPath = fCurrentDir() + "/Assignments/"
gsFileName = "Test.xls"
nFID = fCreate(gsPath + gsFileName )
sResult is Buffer = HTTPGetResult(httpResult)
fWrite(nFID,sResult,Length(sResult))
But the file saved is not accessible to other app on the device.

Any idea as to how to achieve this?

TIA

Viewing all articles
Browse latest Browse all 1914