{"node_id": "f3a3100e-2f95-11f1-a963-e86a64d24d78", "revisions": [{"id": "f3a488ed-2f95-11f1-99b8-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n\r\nhttp://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :\r\n  android app development with scala\r\n \r\nhttp://scala-ide.org/docs/tutorials/androiddevelopment/index.html :\r\n  andoir app development with scala\r\n\r\nhttps://github.com/banshee/AndroidProguardScala\r\n  compiles only the parts of scala lib that your application needs.\r\n\r\nhttp://eed3si9n.com/tetrix-in-scala/index.html :\r\n  tetris in scala step by step howto really in depth !\r\n\r\n  http://eed3si9n.com/tetrix-in-scala/android.html\r\n    port a scala tetris game to android using 'android', sbt, pfn/android-plugin, \r\n\r\n\r\nlibGDX\r\n==========  \r\n\r\nlibGDX is a cross-platform Java game development framework based on OpenGL (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled browser and iOS.\r\n\r\nhttps://github.com/libgdx/libgdx\r\n\r\nhttps://github.com/libgdx/libgdx/wiki/\r\n\r\nhttps://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala\r\n  describes how to use sbt (scala build tool and g8 to build android apps)\r\n\r\nhttp://www.badlogicgames.com/ : \r\n  Mario's game dev blog which is very active, he authored libGDX and builds lots of android games.\r\n\r\nunofficial libGDX references\r\n\r\nhttp://raintomorrow.cc/post/70000607238/develop-games-in-scala-with-libgdx-getting-started :\r\n  develop games in scala with libgdx getting-started\r\n\r\n\r\n\r\n  ", "source_format": "rst", "revision_number": 42, "created": 1413231486000}, {"id": "f3a4853a-2f95-11f1-bf05-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n\r\nhttp://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :\r\n  android app development with scala\r\n \r\nhttp://scala-ide.org/docs/tutorials/androiddevelopment/index.html :\r\n  andoir app development with scala\r\n\r\nhttps://github.com/banshee/AndroidProguardScala\r\n  compiles only the parts of scala lib that your application needs.\r\n  \r\nhttps://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala\r\n  describes how to use sbt (scala build tool and g8 to build android apps)\r\n\r\n  libGDX is a cross-platform Java game development framework based on OpenGL\r\n  (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled browser and iOS.\r\n\r\nhttp://www.badlogicgames.com/ : \r\n  Mario's game dev blog which is very active, he authored libGDX and builds lots of android games.\r\n\r\nhttp://raintomorrow.cc/post/70000607238/develop-games-in-scala-with-libgdx-getting-started :\r\n  develop games in scala with libgdx getting-started\r\n\r\nhttp://eed3si9n.com/tetrix-in-scala/index.html :\r\n  tetris in scala step by step howto\r\n\r\n  http://eed3si9n.com/tetrix-in-scala/android.html\r\n    port a scala tetris game to android using 'android', sbt, pfn/android-plugin, \r\n  ", "source_format": "rst", "revision_number": 41, "created": 1413230475000}, {"id": "f3a48198-2f95-11f1-b67d-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n\r\nhttp://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :\r\n  android app development with scala\r\n \r\nhttp://scala-ide.org/docs/tutorials/androiddevelopment/index.html :\r\n  andoir app development with scala\r\n\r\nhttps://github.com/banshee/AndroidProguardScala\r\n  compiles only the parts of scala lib that your application needs.\r\n  \r\nhttps://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala\r\n  describes how to use sbt (scala build tool and g8 to build android apps)\r\n\r\n  libGDX is a cross-platform Java game development framework based on OpenGL\r\n  (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled browser and iOS.\r\n\r\nhttp://www.badlogicgames.com/ : \r\n  Mario's game dev blog which is very active, he authored libGDX and builds lots of android games.\r\n\r\nhttp://raintomorrow.cc/post/70000607238/develop-games-in-scala-with-libgdx-getting-started :\r\n  develop games in scala with libgdx getting-started\r\n  ", "source_format": "rst", "revision_number": 40, "created": 1413230277000}, {"id": "f3a47e2b-2f95-11f1-af82-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n\r\nhttp://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :\r\n  android app development with scala\r\n \r\nhttp://scala-ide.org/docs/tutorials/androiddevelopment/index.html :\r\n  andoir app development with scala\r\n\r\nhttps://github.com/banshee/AndroidProguardScala\r\n  compiles only the parts of scala lib that your application needs.\r\n  \r\nhttps://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala\r\n  describes how to use sbt (scala build tool and g8 to build android apps)\r\n\r\n  libGDX is a cross-platform Java game development framework based on OpenGL\r\n  (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled browser and iOS.\r\n\r\nhttp://www.badlogicgames.com/ : \r\n  Mario's game dev blog which is very active, he authored libGDX and builds lots of android games.", "source_format": "rst", "revision_number": 39, "created": 1413230167000}, {"id": "f3a47abb-2f95-11f1-a79c-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n\r\nhttp://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :\r\n  android app development with scala\r\n \r\nhttp://scala-ide.org/docs/tutorials/androiddevelopment/index.html :\r\n  andoir app development with scala\r\n\r\nhttps://github.com/banshee/AndroidProguardScala\r\n  compiles only the parts of scala lib that your application needs.\r\n  \r\nhttps://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala\r\n  describes how to use sbt (scala build tool and g8 to build android apps)\r\n\r\n  libGDX is a cross-platform Java game development framework based on OpenGL\r\n  (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled browser and iOS.", "source_format": "rst", "revision_number": 38, "created": 1413228971000}, {"id": "f3a47733-2f95-11f1-bab5-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n\r\nhttp://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :\r\n  android app development with scala\r\n \r\nhttp://scala-ide.org/docs/tutorials/androiddevelopment/index.html :\r\n  andoir app development with scala\r\n\r\nhttps://github.com/banshee/AndroidProguardScala\r\n  compiles only the parts of scala lib that your application needs.\r\n  \r\nhttps://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala\r\n  describes how to use sbt (scala build tool and g8 to build android apps)", "source_format": "rst", "revision_number": 37, "created": 1413228450000}, {"id": "f3a4734a-2f95-11f1-8518-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n\r\nhttp://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :\r\n  android app development with scala\r\n \r\nhttp://scala-ide.org/docs/tutorials/androiddevelopment/index.html :\r\n  andoir app development with scala\r\n\r\nhttps://github.com/banshee/AndroidProguardScala\r\n  compiles only the parts of scala lib that your application needs.\r\n  ", "source_format": "rst", "revision_number": 36, "created": 1413227724000}, {"id": "f3a46f51-2f95-11f1-9faf-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n\r\nhttp://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :\r\n  android app development with scala\r\n \r\nhttp://scala-ide.org/docs/tutorials/androiddevelopment/index.html :\r\n  andoir app development with scala\r\n", "source_format": "rst", "revision_number": 35, "created": 1413227301000}, {"id": "f3a46bdc-2f95-11f1-b4c9-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n\r\nhttp://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :\r\n  android app development with scala\r\n ", "source_format": "rst", "revision_number": 34, "created": 1413227250000}, {"id": "f3a4685e-2f95-11f1-a13f-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog scala android scawars devs used: maven progaurd scala\r\n ", "source_format": "rst", "revision_number": 33, "created": 1413227219000}, {"id": "f3a464e6-2f95-11f1-82b9-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\nhttps://github.com/dunnololda/scage : \r\n  game engine \r\n\r\nhttp://scalandroid.blogspot.com/ :\r\n  game making blog\r\n ", "source_format": "rst", "revision_number": 32, "created": 1413210501000}, {"id": "f3a4615a-2f95-11f1-9577-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)\r\n\r\n\r\nscala game engines\r\n===================\r\n\r\n**https://github.com/dunnololda/scage**\r\n  game engine \r\n\r\n**http://scalandroid.blogspot.com/**\r\n  game making blog\r\n ", "source_format": "rst", "revision_number": 31, "created": 1413210476000}, {"id": "f3a45d42-2f95-11f1-87a5-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.11.0 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)", "source_format": "rst", "revision_number": 30, "created": 1400085834000}, {"id": "f3a459c9-2f95-11f1-9e72-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps.  Replace version with latest in the subsequent code block.\r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz\r\n tar -xzvf scala-2.11.0.tgz\r\n \r\n # install\r\n sudo mv scala-2.10.3 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)", "source_format": "rst", "revision_number": 29, "created": 1400085791000}, {"id": "f3a45634-2f95-11f1-89b6-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button\r\n\r\nInstalling Scala\r\n====================\r\n\r\nNot directly related to Android development, but I plan to learn Scala (expand my use of functional langs) while building android apps. \r\n\r\n.. code-block:: bash\r\n\r\n # download & unzip\r\n wget http://www.scala-lang.org/files/archive/scala-2.10.3.tgz\r\n tar -xzvf scala-2.10.3.tgz\r\n \r\n # install\r\n sudo mv scala-2.10.3 /usr/share/scala\r\n sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala\r\n sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac\r\n sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc\r\n sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc\r\n sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap\r\n\r\nmight need sbt (scala build tools)", "source_format": "rst", "revision_number": 28, "created": 1392033096000}, {"id": "f3a45175-2f95-11f1-a664-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in debug mode (development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nHow to update Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 27, "created": 1357061860000}, {"id": "f3a44d97-2f95-11f1-8baf-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and running from the command line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 26, "created": 1357061710000}, {"id": "f3a44953-2f95-11f1-b613-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an ADV (android virtual device) emulator\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 25, "created": 1357061610000}, {"id": "f3a445c1-2f95-11f1-8914-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n  .. code-block:: bash\r\n\r\n   # On Redhat or Fedora run the following\r\n\r\n   yum install java-1.7.0-openjdk\r\n   yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n  .. code-block:: bash\r\n    \r\n   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 24, "created": 1357061346000}, {"id": "f3a441e5-2f95-11f1-89fa-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.. contents::\r\n\r\nSetup your development environment\r\n===========================================\r\n\r\n* install the Java Development Kit (JDK)\r\n\r\n On Redhat or Fedora run the following::\r\n\r\n  yum install java-1.7.0-openjdk\r\n  yum install java-1.7.0-openjdk-devel\r\n\r\n\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n .. code-block:: bash\r\n    \r\n  # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 23, "created": 1357060948000}, {"id": "f3a43e51-2f95-11f1-8fdb-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.. contents::\r\n\r\n* install java\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n .. code-block:: bash\r\n    \r\n  # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\r\n\r\nInstall Java environment\r\n===============================\r\n\r\nWe need the Java Development Kit (JDK).\r\n\r\nRedhat or Fedora:\r\n\r\n.. code-block:: bash\r\n\r\n yum install java-1.7.0-openjdk\r\n yum install java-1.7.0-openjdk-devel\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n--------------------------------------------\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n---------------------------------------------\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n=========================================\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 22, "created": 1357060246000}, {"id": "f3a43ad7-2f95-11f1-93c8-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.. contents::\r\n\r\n* install java\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n .. code-block:: bash\r\n    \r\n  # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\r\n\r\nInstall Java environment\r\n===============================\r\n\r\nWe need the Java Development Kit (JDK).\r\n\r\nRedhat or Fedora:\r\n\r\n.. code-block:: bash\r\n\r\n yum install java-1.7.0-openjdk\r\n yum install java-1.7.0-openjdk-devel\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n################################\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 21, "created": 1357060067000}, {"id": "f3a4374b-2f95-11f1-8fa7-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.. contents::\r\n\r\n* install java\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n .. code-block:: bash\r\n    \r\n  # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for both building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n################################\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 20, "created": 1344090826000}, {"id": "f3a433c8-2f95-11f1-9824-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.. contents::\r\n\r\n* install java\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n .. code-block:: bash\r\n    \r\n  # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tools' >> ~/.bashrc\r\n  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n################################\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 19, "created": 1335221278000}, {"id": "f3a43056-2f95-11f1-bd0a-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.. contents::\r\n\r\n* install java\r\n* install the android sdk::\r\n\r\n   http://developer.android.com/sdk/index.html\r\n\r\n* adjust your path environment variable\r\n  \r\n .. code-block:: bash\r\n    \r\n  # echo 'export PATH=$PATH:/home/fox/android/tools' >> ~/.bashrc\r\n  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n################################\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 18, "created": 1335221110000}, {"id": "f3a42cdb-2f95-11f1-a999-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.. contents::\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   .. code-block:: bash\r\n    \r\n     # echo 'export PATH=$PATH:/home/fox/android/tools' >> ~/.bashrc\r\n     echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install \r\n\r\n\r\nUpdate the Android SDK\r\n################################\r\n\r\nPeriodically you may want to update your development environment, here's how:\r\n\r\n* open a Terminal (ctrl+alt+t)\r\n* type 'android' and press enter\r\n* click the 'Installed packages' tab\r\n* click the 'Update All...' button", "source_format": "rst", "revision_number": 17, "created": 1335127979000}, {"id": "f3a42961-2f95-11f1-9c8d-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.. contents::\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   .. code-block:: bash\r\n    \r\n     # echo 'export PATH=$PATH:/home/fox/android/tools' >> ~/.bashrc\r\n     echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc\r\n\r\n* optionally install eclipse\r\n* create an android project\r\n* create an ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install ", "source_format": "rst", "revision_number": 16, "created": 1335127542000}, {"id": "f3a425ce-2f95-11f1-af18-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.. contents::\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 ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret command for building in debug mode and deploying to a running emulator use the following command:\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install ", "source_format": "rst", "revision_number": 15, "created": 1315438329000}, {"id": "f3a421b0-2f95-11f1-a5c4-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.. contents::\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 ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  You might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\n  A top secret shortcut for development building and deploying to an emulator is the following command\r\n\r\n  .. code-block:: bash\r\n  \r\n   ant install ", "source_format": "rst", "revision_number": 14, "created": 1315438068000}, {"id": "f3a41e21-2f95-11f1-b4cc-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.. contents::\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 ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\nYou might need to specify the device serial which is found on the top of the virtual device titlebar.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk", "source_format": "rst", "revision_number": 13, "created": 1315437838000}, {"id": "f3a41a81-2f95-11f1-ba2c-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.. contents::\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 ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script which exists in the platform-tools/ directory of the SDK. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n\r\nYou might need to specify the device serial.\r\n\r\n  .. code-block:: bash\r\n   \r\n    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk", "source_format": "rst", "revision_number": 12, "created": 1315437571000}, {"id": "f3a416cf-2f95-11f1-9e1e-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.. contents::\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 ADV (android virtual device)\r\n\r\n**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n\r\nInstall Debug application to emulator\r\n##########################################\r\n\r\n#. Start your AVD (android Virtual Device) emulator.\r\n#. Install your application using the adb script. \r\n\r\n  .. code-block:: bash\r\n  \r\n    adb install ~/HelloWorld/bin/HelloWorld-debug.apk\r\n", "source_format": "rst", "revision_number": 11, "created": 1315437308000}, {"id": "f3a4133b-2f95-11f1-b87f-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.. contents::\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**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n", "source_format": "rst", "revision_number": 10, "created": 1315436446000}, {"id": "f3a40f99-2f95-11f1-8f84-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**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n\r\n\r\nBuilding in Debug Mode (Development)\r\n##########################################\r\n\r\n#. Navigate to root of the project\r\n#. Compile the project using Ant.\r\n\r\n   .. code-block:: bash\r\n\r\n      ant debug\r\n", "source_format": "rst", "revision_number": 9, "created": 1315436418000}, {"id": "f3a40bc8-2f95-11f1-86c7-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**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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\nmodify your source code...\r\n\r\n\r\n\r\nBuilding and Running from the Command Line\r\n-------------------------------------------------\r\n\r\nReference: http://developer.android.com/guide/developing/building/building-cmdline.html\r\n\r\nThe Ant script compiles and builds your project into a .apk file which may be installed on an emulator or device.  \r\n\r\nAnt provides the following two build modes:\r\n\r\n* Test or Debug (Development)\r\n* Release (Production)\r\n\r\nRegardless of the build mode chosen the application must be signed before it can be installed on an emulator or device.\r\n\r\nIn development (debug mode) the SDK will automatically sign your project with a development key.  An application signed with a development key cannot be distributed.\r\n\r\nIn production (release mode) the SDK will not sign the .apk file, you will need to do this manually using the Keytool and Jarsigner.\r\n\r\n ", "source_format": "rst", "revision_number": 8, "created": 1315436138000}, {"id": "f3a40773-2f95-11f1-af17-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**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH environment variable.\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": 7, "created": 1315433933000}, {"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}, {"id": "f3a3ff9d-2f95-11f1-b5f4-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 HelloAndroid in your home directory.\r\n\r\n.. code-block:: bash\r\n\r\n android create project \\\r\n    --package com.example.helloandroid \\\r\n    --activity HelloAndroid \\\r\n    --target 3 \\\r\n    --path ~/HelloAndroid\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.", "source_format": "rst", "revision_number": 5, "created": 1315433582000}, {"id": "f3a3fa84-2f95-11f1-ba8b-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 cli command below will create an android project named HelloAndroid in your home directory.\r\n\r\n.. code-block:: bash\r\n\r\n android create project \\\r\n    --package com.example.helloandroid \\\r\n    --activity HelloAndroid \\\r\n    --target 2 \\\r\n    --path ~/HelloAndroid\r\n\r\nNow if you navigate to ~/HelloAndroid you should see your project skeleton made up of directories and files.", "source_format": "rst", "revision_number": 4, "created": 1315433081000}, {"id": "f3a3f635-2f95-11f1-a44e-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\nThe cli command below will create an android project named HelloAndroid in your home directory.\r\n\r\n.. code-block:: bash\r\n\r\n android create project \\\r\n    --package com.example.helloandroid \\\r\n    --activity HelloAndroid \\\r\n    --target 2 \\\r\n    --path ~/HelloAndroid\r\n\r\nNow if you navigate to ~/HelloAndroid you should see your project skeleton made up of directories and files.", "source_format": "rst", "revision_number": 3, "created": 1315432964000}, {"id": "f3a3f14f-2f95-11f1-9611-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\nThe cli command below will create an android project named HelloAndroid in your home directory.\r\n\r\n.. code-block:: bash\r\n\r\n android create project \\\r\n    --package com.example.helloandroid \\\r\n    --activity HelloAndroid \\\r\n    --target 2 \\\r\n    --path ~/HelloAndroid\r\n\r\n", "source_format": "rst", "revision_number": 2, "created": 1315432815000}, {"id": "f3a3e94b-2f95-11f1-9a63-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\nThe cli command below will create an android project named HelloAndroid in your home directory.\r\n\r\n.. code-block:: bash\r\n\r\n android create project \\\r\n    --package com.example.helloandroid \\\r\n    --activity HelloAndroid \\\r\n    --target 2 \\\r\n    --path ~/HelloAndroid\r\n\r\n", "source_format": "rst", "revision_number": 1, "created": 1315432803000}], "count": 42}