DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:get_shared_files

Differences

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

Link to this comparison view

built_in:get_shared_files [2016/10/28 12:05] (current)
titus created
Line 1: Line 1:
 +**app.GetSharedFiles()**
  
 +Use it to get the files that your app receives from another external app e.g a file manager or through share/send option. \\
 +It returns an array of URLs of the files sent \\
 +
 +**Example**
 +<code JavaScript sharedfiles.js>​
 +function OnStart()
 +{
 +sharedfiles = app.GetSharedFile()
 +if(sharedfiles)
 +  {
 +var s =""​
 +for(i=0;​i<​sharedfiles.length;​i++)
 +         {
 +           s+= sharedfiles[i]+"​\n"​
 +         }
 +       ​alert(s)
 +   }
 +}
 +</​code>​
built_in/get_shared_files.txt ยท Last modified: 2016/10/28 12:05 by titus