With Run On Droid you can execute android code snippets like in a Read-Eval-Print-Loop (REPL) where your device is in the loop and executes the commands.
For example you can write the code to show a toats message into the browser and it gets displayed on your phone, or execute the code to read the GPS data.