Mobile - Open file dialog?

Ludovic THEBAULT ludovic.thebault at
Tue May 14 01:35:06 EDT 2019

> Le 14 mai 2019 à 00:57, Matthias Rebbe via use-livecode <use-livecode at> a écrit :
> Hi,
> i am currently porting a desktop app to mobile. In this app the user will be able to save and open PDF files in the documents folder.
> For opening a file In desktop "answer file" is the way to do it. But how would you do this in Android/iOS? Would you use mobilePick for this or is there a more elegant way or "better looking" way for this?

No need to ask a path to the user. Save directly on the destination folder.
For iOs : the specialfolderpath(« Documents »)
For Android, the documents folder could be inaccessible to the user, it is better to use the specialfolderpath("external documents »). Generally the path is something like /Android/Datas/TheIdentifierOfTheApp*/files/ 

*The identifier is the « com.domain.nameoftheApp »  you indicated in the standalone settings. Also, the « write external storage » need to be activated.


More information about the use-livecode mailing list