Is it possible to save a file to "Downloads" using Totalcross?

2

To contextualize .. Initially I was trying to implement opening a PDF using Totalcross as can be seen in this question: How to open a PDF using Totalcross?

However, there is no solution to this problem. So, another way is to save the file to the client device, and present the path / directory so that it can navigate to the location and open the PDF file.

Well, creating directories and inserting the file into it is possible.

My question is .. is there anything that Totalcross implements the default platform downloads directory?

For example, in native Android code, you can access the "Downloads" folder using the following snippet:

Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);

Thanks in advance for your support! :)

    
asked by anonymous 16.10.2017 / 18:43

0 answers