|
| Inicio → 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-..... |
| Iniciado por guest, 05,jun. 2018 06:35 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 05,junio 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 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 05,junio 2018 - 16:45 |
| You can try using the sysDirStorageCard instead of fCurrentDir |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,junio 2018 - 05:58 |
Thanks for the tip.
Will play with it. |
| |
| |
| | | |
|
| | | | |
| | |
|