app.Execute(code)
This method executes a code in a similar way as eval() but it returns undefined.
app.Execute("app.ShowPopup('Hello')") // shows a popup app.Execute("app.Exit()") //exits app.
The main use of app.Execute is to call DroidScript code from within html.
This can be within an html app or a WebView. For a sample, take a look at this sample