PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WM20] - How to save a file to Download folder in Android -OR-.....
[WM20] - How to save a file to Download folder in Android -OR-.....
Débuté par Yogi Yang, 05 juin 2018 06:35 - 2 réponses
Posté le 05 juin 2018 - 06:35
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
Posté le 05 juin 2018 - 16:45
You can try using the sysDirStorageCard instead of fCurrentDir
Posté le 08 juin 2018 - 05:58
Thanks for the tip.

Will play with it.