User Tools

Site Tools


built_in:open_file

Differences

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

Link to this comparison view

built_in:open_file [2015/03/04 18:15]
octazid created
built_in:open_file [2018/04/17 01:20]
Line 1: Line 1:
-=====OpenFile===== 
  
-//(Information and examples taken from the DroidScript documentation)// 
- 
-====Description==== 
- 
-The **OpenFile** method allows you to open a file with an external application on your device. The user will be prompted you to choose an appropriate App to handle the specified file type. 
- 
-<code> app.OpenFile( fileName, type, prompt );</code> 
- 
----- 
- 
-====Example==== 
- 
-<code javascript> 
- 
-function OnStart() 
-{ 
-   app.WriteFile( "/sdcard/test.txt", "Hello" ); 
-   app.OpenFile( "/sdcard/test.txt", "text/plain", "Choose Editor" ); 
-}   
- 
-</code> 
built_in/open_file.txt ยท Last modified: 2018/04/17 01:20 (external edit)