DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:choosefile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:choosefile [2017/07/23 14:24] (current)
stevegarman created
Line 1: Line 1:
 +====== app.ChooseFile ======
 +===== app.ChooseFile(prompt,​ mimetype, callback) =====
 +
 +
 +Calls a system dialog to allow the user to choose a file
 +
 +For audio files:-
 +
 +<​code>​app.ChooseFile("​Choose a file", "​audio/​*",​ assets_onFileChoose);</​code>​
 +
 +For text files:-
 +
 +<​code>​app.ChooseFile("​Choose a file", "​text/​*",​ onFileChoose);</​code>​
 +
 +For image files:-
 +
 +<​code>​app.ChooseFile("​Choose a file", "​image/​*",​ onFileChoose);</​code>​
 +
 +For all files:-
 +
 +    app.ChooseFile("​Choose a file", "​*/​*",​ onFileChoose);​
  
built_in/choosefile.txt ยท Last modified: 2017/07/23 14:24 by stevegarman