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

Asked

Viewed 63 times

2

To put it in context.. Initially I was trying to implement the opening of a PDF using Totalcross as can be seen in this issue: How to open a PDF using Totalcross?

However, there is no solution to this problem. Therefore, another output is to save the file on 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 in such is possible to do.

My question is.. there is something that Totalcross implements the standard platform download directory?

As for example, in native Android code, it is possible to access the "Downloads" folder using the following excerpt:

Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);

Thanks for your support! :)

  • I had to do the same, but the only solution I found was to open a url with a "download" button to let the browser to download

  • As it was on iOS, worked out this too?

  • I needed the feature only for Android, so I can’t say how it looked on iOS

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.