How To Build RemoteJSBuilding the application is a fairly straight forward process. First, confirm that you have Qt framework installed. Then, download the RemoteJS source code from our brand new Android Tools repository on Sencha Labs. Build the desktop application as follows:
git clone git://github.com/senchalabs/android-tools.git cd android-tools/remotejs/src/desktop qmake && makeNext, all you need to do is install the Android SDK, plug your device in (or launch your emulator), and you’re ready to go. Here’s a screenshot of the RemoteJS tool running next to an emulator, inspecting an example from Sencha Touch:
The program automatically installs a package with the same name on the device. This tool will actually be the one loading your page, instead of the Android browser. This doesn’t represent any concern from the developer’s perspective, since the web engine component that is used is exactly the same on both applications. For further details on how it works and the implementation details, please refer to the README. To open a specific URL, just enter it on the console. If you don’t include the protocol, only addresses starting with “www” will be validated. If you have more than one attached device, you’ll be presented with a list to choose from. Similarly, it will detect when you disconnect the device already being used. It will then fall back to the only attached device left, if that’s the case, or wait until you connect one again. Please note that in order to actually get some output back, you need to make use of console.log.