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
Next revision
Previous revision
built_in:start_app [2016/09/14 19:00]
titus [Description]
built_in:start_app [2016/09/15 03:08] (current)
Line 7: Line 7:
 Starts DroidScript application from script in **file**. File is the fullpath to the app. Parameter **options** is optional. Starts DroidScript application from script in **file**. File is the fullpath to the app. Parameter **options** is optional.
 \\ Intent contains information to be transferred to the other app. e.g \\ action \\ type \\ data \\ extras \\ Intent contains information to be transferred to the other app. e.g \\ action \\ type \\ data \\ extras
-. \\ Compile you intent as an object then convert to JSON+. \\ Compile your intent as an object then convert to JSON
  
 <code> <code>
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.1473879659.txt.gz · Last modified: 2016/09/15 03:01 (external edit)