Back

OpenFile

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.

 app.OpenFile( fileName, type, prompt );

Example

function OnStart()
{
   app.WriteFile( "/sdcard/test.txt", "Hello" );
   app.OpenFile( "/sdcard/test.txt", "text/plain", "Choose Editor" );
}
  Copy   Copy All