Mobile - Open file dialog?

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Tue May 14 09:39:39 EDT 2019


Hi Ludovic,

thanks for you answer, but i think a was not precise enough.

The app allows to saves PDF files.  Not only one, but many. The folder to which the files are saved is static set to the documents folder.
I want to allow the users to open any of that files. As i wrote already, in Desktop i am doing this by "answer file with.....   " and the users see the files in the documents folder and just have to select the one they want to open.

Currently i am using mobilepick on my mobile app to show a list of all files and let the users select the one they want to open.
But i was wondering if there might be an other solution that would allow this also.


Matthias Rebbe

> Am 14.05.2019 um 07:35 schrieb Ludovic THEBAULT via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
> 
> 
>> Le 14 mai 2019 à 00:57, Matthias Rebbe via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at 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 at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the Use-livecode mailing list