> Le 14 mai 2019 à 00:57, Matthias Rebbe via use-livecode 
> <use-livecode@lists.runrev.com> 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.

Ludovic
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to