This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
built_in:open_file [2015/03/04 18:15] octazid created |
built_in:open_file [2015/09/29 17:54] octazid [Example] |
||
---|---|---|---|
Line 5: | Line 5: | ||
====Description==== | ====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. | + | 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 |
+ | |||
+ | You can also pass null for the second parameter and the type will be automatically determined from the filename. | ||
< | < | ||
Line 11: | Line 13: | ||
---- | ---- | ||
- | ====Example==== | + | ====Examples==== |
<code javascript> | <code javascript> | ||
Line 20: | Line 22: | ||
| | ||
} | } | ||
+ | </ | ||
+ | |||
+ | <code javascript> | ||
+ | |||
+ | function OnStart() | ||
+ | { | ||
+ | app.OpenFile( "/ | ||
+ | } | ||
+ | |||
</ | </ |