This shows you the differences between two versions of the page.
built_in:open_file [2015/09/29 17:54] octazid [Example] |
built_in:open_file [2018/04/17 01:20] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====OpenFile===== | ||
- | // | ||
- | |||
- | ====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 | ||
- | |||
- | You can also pass null for the second parameter and the type will be automatically determined from the filename. | ||
- | |||
- | < | ||
- | |||
- | ---- | ||
- | |||
- | ====Example==== | ||
- | |||
- | <code javascript> | ||
- | |||
- | function OnStart() | ||
- | { | ||
- | | ||
- | | ||
- | } | ||
- | </ | ||
- | |||
- | <code javascript> | ||
- | |||
- | function OnStart() | ||
- | { | ||
- | app.OpenFile( "/ | ||
- | } | ||
- | |||
- | |||
- | </ |