DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:start_app

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
built_in:start_app [2016/09/14 19:01]
titus [Description]
built_in:start_app [2016/09/14 19:08] (current)
titus [Example]
Line 18: Line 18:
  
 <code javascript>​ <code javascript>​
-app.StartApp( "/​sdcard/​DroidScript/​Hello World/Hello World.js", "Debug");+var data ={ 
 +action:"​android.intent.action.VIEW",​ 
 +type : "​message/​rfc822",​ 
 +data:"/​sdcard/​yourfile.jpg",​ 
 +extras:​{name:"​android.intent.extra.EMAIL",​type:"​list",​value:"​yourname@gmail.com"​} 
 +
 +var intent= JSON.stringify(data) 
 +app.StartApp("/​sdcard/​DroidScript/​PhotoViewer/PhotoViewer.js,""​,​intent ​); 
 +//Option can be **debug**
 </​code>​ </​code>​
built_in/start_app.txt · Last modified: 2016/09/14 19:08 by titus