{"revision": {"id": "f3a403bc-2f95-11f1-8729-e86a64d24d78", "node_id": "f3a3100e-2f95-11f1-a963-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Android programming on Linux\r\n=================================\r\n\r\n* install java\r\n* install the android sdk\r\n\r\n  - adjust your path environment variable\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an android virtual device\r\n\r\n\r\n\r\nCreate an android project on the cli\r\n----------------------------------------------------\r\n\r\nreference: http://developer.android.com/guide/developing/projects/projects-cmdline.html\r\n\r\nThe following cli command will create an android project skeleton named HelloWorld in your home directory.\r\n\r\n.. code-block:: bash\r\n\r\n android create project \\\r\n    --package com.example.helloworld \\\r\n    --activity HelloWorld \\\r\n    --target 3 \\\r\n    --path ~/HelloWorld\r\n\r\ntarget\r\n  The \"build target\" for your application. \r\n\r\n  This corresponds to an Android platform library (including any add-ons, such as Google APIs) that you would like to build your project against. \r\n\r\n  To see a list of available targets and their corresponding IDs, **execute: android list targets.**\r\n\r\nname \r\n  The name for your project. \r\n\r\n  This is optional. If provided, this name will be used for your .apk filename when you build your application.\r\n\r\npath \r\n  The location of your project directory. \r\n\r\n  If the directory does not exist, it will be created for you.\r\n\r\nactivity \r\n  The name for your default Activity class. \r\n\r\n  This class file will be created for you inside <path_to_your_project>/src/<your_package_namespace_path>/ .\r\n\r\n  This will also be used for your .apk filename unless you provide a name.\r\n\r\npackage \r\n  the package namespace for your project\r\n \r\n  This will follow the Java programming language standards.\r\n\r\nProgramming the HelloWorld project\r\n---------------------------------------------\r\n\r\n android create project \\\r\n    --package com.example.helloworld \\\r\n    --activity HelloWorld \\\r\n    --target 3 \\\r\n    --path ~/HelloWorld", "source_format": "rst", "revision_number": 6, "created": 1315433802000}}