Host and target setup
Follow the system setup page to set up the Crosswalk development environment.
- x86 ZTE Geek phone with Android 4.2.2
- ARM HTC OneX with Android 4.0.4
For the purposes of the tutorial, the extension and the application are developed within a single top-level project directory. Here is an outline of the structure:
Although you'll be developing the extension alongside the application, bear in mind that a Crosswalk extension can be reused between projects if you wish.
Create the project directories
For the purposes of the tutorial, it's assumed that you have a directory for your own projects in
~/<my projects directory>. Create the required directories for this tutorial project inside your projects directory as follows:
cd ~/<my projects directory> # set up top-level directory for the xwalk-player project mkdir xwalk-echo-project