android-programming-on-linux

JSON

rev 42  |  foxhop  |  1413231486000  |  JSON

rev 41
rev 42
188https://github.com/banshee/AndroidProguardScala188https://github.com/banshee/AndroidProguardScala
189  compiles only the parts of scala lib that your application needs.189  compiles only the parts of scala lib that your application needs.
n190  n190 
191http://eed3si9n.com/tetrix-in-scala/index.html :
192  tetris in scala step by step howto really in depth !
193 
194  http://eed3si9n.com/tetrix-in-scala/android.html
195    port a scala tetris game to android using 'android', sbt, pfn/android-plugin
 >
196 
197 
198libGDX
199==========  
200 
201libGDX 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.
202 
203https://github.com/libgdx/libgdx
204 
205https://github.com/libgdx/libgdx/wiki/
206 
191https://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala207https://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala
192  describes how to use sbt (scala build tool and g8 to build android apps)208  describes how to use sbt (scala build tool and g8 to build android apps)
193209
n194  libGDX is a cross-platform Java game development framework based on OpenGLn
195  (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled brows
>er and iOS. 
196 
197http://www.badlogicgames.com/ : 210http://www.badlogicgames.com/ : 
198  Mario's game dev blog which is very active, he authored libGDX and builds lots211  Mario's game dev blog which is very active, he authored libGDX and builds lots
> of android games.> of android games.
199212
nn213unofficial libGDX references
214 
200http://raintomorrow.cc/post/70000607238/develop-games-in-scala-with-libgdx-getti215http://raintomorrow.cc/post/70000607238/develop-games-in-scala-with-libgdx-getti
>ng-started :>ng-started :
201  develop games in scala with libgdx getting-started216  develop games in scala with libgdx getting-started
202217
n203http://eed3si9n.com/tetrix-in-scala/index.html :n
204  tetris in scala step by step howto
205218
t206  http://eed3si9n.com/tetrix-in-scala/android.htmlt219 
207    port a scala tetris game to android using 'android', sbt, pfn/android-plugin
> 
208  220  
rev 41  |  foxhop  |  1413230475000  |  JSON

rev 40
rev 41
200http://raintomorrow.cc/post/70000607238/develop-games-in-scala-with-libgdx-getti200http://raintomorrow.cc/post/70000607238/develop-games-in-scala-with-libgdx-getti
>ng-started :>ng-started :
201  develop games in scala with libgdx getting-started201  develop games in scala with libgdx getting-started
tt202 
203http://eed3si9n.com/tetrix-in-scala/index.html :
204  tetris in scala step by step howto
205 
206  http://eed3si9n.com/tetrix-in-scala/android.html
207    port a scala tetris game to android using 'android', sbt, pfn/android-plugin
 >
202  208  
rev 40  |  foxhop  |  1413230277000  |  JSON

rev 39
rev 40
197http://www.badlogicgames.com/ : 197http://www.badlogicgames.com/ : 
198  Mario's game dev blog which is very active, he authored libGDX and builds lots198  Mario's game dev blog which is very active, he authored libGDX and builds lots
> of android games.> of android games.
tt199 
200http://raintomorrow.cc/post/70000607238/develop-games-in-scala-with-libgdx-getti
 >ng-started :
201  develop games in scala with libgdx getting-started
202  
rev 39  |  foxhop  |  1413230167000  |  JSON

rev 38
rev 39
194  libGDX is a cross-platform Java game development framework based on OpenGL194  libGDX is a cross-platform Java game development framework based on OpenGL
195  (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled brows195  (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled brows
>er and iOS.>er and iOS.
tt196 
197http://www.badlogicgames.com/ : 
198  Mario's game dev blog which is very active, he authored libGDX and builds lots
 > of android games.
rev 38  |  foxhop  |  1413228971000  |  JSON

rev 37
rev 38
191https://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala191https://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala
192  describes how to use sbt (scala build tool and g8 to build android apps)192  describes how to use sbt (scala build tool and g8 to build android apps)
tt193 
194  libGDX is a cross-platform Java game development framework based on OpenGL
195  (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled brows
 >er and iOS.
rev 37  |  foxhop  |  1413228450000  |  JSON

rev 36
rev 37
189  compiles only the parts of scala lib that your application needs.189  compiles only the parts of scala lib that your application needs.
190  190  
tt191https://github.com/libgdx/libgdx/wiki/Using-libgdx-with-Scala
192  describes how to use sbt (scala build tool and g8 to build android apps)
rev 36  |  foxhop  |  1413227724000  |  JSON

rev 35
rev 36
185http://scala-ide.org/docs/tutorials/androiddevelopment/index.html :185http://scala-ide.org/docs/tutorials/androiddevelopment/index.html :
186  andoir app development with scala186  andoir app development with scala
tt187 
188https://github.com/banshee/AndroidProguardScala
189  compiles only the parts of scala lib that your application needs.
190  
rev 35  |  foxhop  |  1413227301000  |  JSON

rev 34
rev 35
183  android app development with scala183  android app development with scala
184 184 
tt185http://scala-ide.org/docs/tutorials/androiddevelopment/index.html :
186  andoir app development with scala
rev 34  |  foxhop  |  1413227250000  |  JSON

rev 33
rev 34
179http://scalandroid.blogspot.com/ :179http://scalandroid.blogspot.com/ :
180  game making blog scala android scawars devs used: maven progaurd scala180  game making blog scala android scawars devs used: maven progaurd scala
tt181 
182http://www.drdobbs.com/mobile/developing-android-apps-with-scala-and-s/ :
183  android app development with scala
181 184 
rev 33  |  foxhop  |  1413227219000  |  JSON

rev 32
rev 33
178178
179http://scalandroid.blogspot.com/ :179http://scalandroid.blogspot.com/ :
t180  game making blogt180  game making blog scala android scawars devs used: maven progaurd scala
181 181 
rev 32  |  foxhop  |  1413210501000  |  JSON

rev 31
rev 32
174===================174===================
175175
n176**https://github.com/dunnololda/scage**n176https://github.com/dunnololda/scage : 
177  game engine 177  game engine 
178178
t179**http://scalandroid.blogspot.com/**t179http://scalandroid.blogspot.com/ :
180  game making blog180  game making blog
181 181 
rev 31  |  foxhop  |  1413210476000  |  JSON

rev 30
rev 31
169169
170might need sbt (scala build tools)170might need sbt (scala build tools)
tt171 
172 
173scala game engines
174===================
175 
176**https://github.com/dunnololda/scage**
177  game engine 
178 
179**http://scalandroid.blogspot.com/**
180  game making blog
181 
rev 30  |  foxhop  |  1400085834000  |  JSON

rev 29
rev 30
161 161 
162 # install162 # install
t163 sudo mv scala-2.10.3 /usr/share/scalat163 sudo mv scala-2.11.0 /usr/share/scala
164 sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala164 sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala
165 sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac165 sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac
rev 29  |  foxhop  |  1400085791000  |  JSON

rev 28
rev 29
152====================152====================
153153
n154Not directly related to Android development, but I plan to learn Scala (expand mn154Not directly related to Android development, but I plan to learn Scala (expand m
>y use of functional langs) while building android apps. >y use of functional langs) while building android apps.  Replace version with la
 >test in the subsequent code block.
155155
156.. code-block:: bash156.. code-block:: bash
157157
158 # download & unzip158 # download & unzip
t159 wget http://www.scala-lang.org/files/archive/scala-2.10.3.tgzt159 wget hhttp://www.scala-lang.org/files/archive/scala-2.11.0.tgz
160 tar -xzvf scala-2.10.3.tgz160 tar -xzvf scala-2.11.0.tgz
161 161 
162 # install162 # install
rev 28  |  foxhop  |  1392033096000  |  JSON

rev 27
rev 28
148* click the 'Installed packages' tab148* click the 'Installed packages' tab
149* click the 'Update All...' button149* click the 'Update All...' button
tt150 
151Installing Scala
152====================
153 
154Not directly related to Android development, but I plan to learn Scala (expand m
 >y use of functional langs) while building android apps. 
155 
156.. code-block:: bash
157 
158 # download & unzip
159 wget http://www.scala-lang.org/files/archive/scala-2.10.3.tgz
160 tar -xzvf scala-2.10.3.tgz
161 
162 # install
163 sudo mv scala-2.10.3 /usr/share/scala
164 sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala
165 sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac
166 sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc
167 sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc
168 sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap
169 
170might need sbt (scala build tools)
rev 27  |  foxhop  |  1357061860000  |  JSON

rev 26
rev 27
106106
107107
n108Building in Debug Mode (Development)n108Building in debug mode (development)
109--------------------------------------------109--------------------------------------------
110110
116      ant debug116      ant debug
117117
n118Install Debug application to emulatorn118Install debug application to emulator
119---------------------------------------------119---------------------------------------------
120120
139139
140140
t141Update the Android SDKt141How to update Android SDK
142=========================================142=========================================
143143
rev 26  |  foxhop  |  1357061710000  |  JSON

rev 25
rev 26
8686
8787
t88Building and Running from the Command Linet88Building and running from the command line
89-------------------------------------------------89-------------------------------------------------
9090
rev 25  |  foxhop  |  1357061610000  |  JSON

rev 24
rev 25
2929
30* optionally install eclipse30* optionally install eclipse
t31* create an android projectt
32* create an ADV (android virtual device)31* create an ADV (android virtual device) emulator
3332
34**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH en33**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH en
>vironment variable.>vironment variable.
rev 24  |  foxhop  |  1357061346000  |  JSON

rev 23
rev 24
9* install the Java Development Kit (JDK)9* install the Java Development Kit (JDK)
1010
n11 On Redhat or Fedora run the following::n11  .. code-block:: bash
1212
nn13   # On Redhat or Fedora run the following
14 
13  yum install java-1.7.0-openjdk15   yum install java-1.7.0-openjdk
14  yum install java-1.7.0-openjdk-devel16   yum install java-1.7.0-openjdk-devel
1517
1618
21* adjust your path environment variable23* adjust your path environment variable
22  24  
n23 .. code-block:: bashn25  .. code-block:: bash
24    26    
t25  # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-tt27   # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-
>ools' >> ~/.bashrc>tools' >> ~/.bashrc
26  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc28   echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc
2729
28* optionally install eclipse30* optionally install eclipse
rev 23  |  foxhop  |  1357060948000  |  JSON

rev 22
rev 23
4.. contents::4.. contents::
55
n6* install javan6Setup your development environment
7===========================================
8 
9* install the Java Development Kit (JDK)
10 
11 On Redhat or Fedora run the following::
12 
13  yum install java-1.7.0-openjdk
14  yum install java-1.7.0-openjdk-devel
15 
16 
7* install the android sdk::17* install the android sdk::
818
2131
22**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH en32**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH en
>vironment variable.>vironment variable.
t23 t
24Install Java environment
25===============================
26 
27We need the Java Development Kit (JDK).
28 
29Redhat or Fedora:
30 
31.. code-block:: bash
32 
33 yum install java-1.7.0-openjdk
34 yum install java-1.7.0-openjdk-devel
3533
3634
rev 22  |  foxhop  |  1357060246000  |  JSON

rev 21
rev 22
f1Android programming on Linuxf1Android programming on Linux
n2=================================n2################################
33
4.. contents::4.. contents::
3737
38Create an android project on the cli38Create an android project on the cli
n39----------------------------------------------------n39=========================================
4040
41reference: http://developer.android.com/guide/developing/projects/projects-cmdli41reference: http://developer.android.com/guide/developing/projects/projects-cmdli
>ne.html>ne.html
8181
82Programming the HelloWorld project82Programming the HelloWorld project
n83---------------------------------------------n83=========================================
8484
85modify your source code...85modify your source code...
108108
109Building in Debug Mode (Development)109Building in Debug Mode (Development)
n110##########################################n110--------------------------------------------
111111
112#. Navigate to root of the project112#. Navigate to root of the project
118118
119Install Debug application to emulator119Install Debug application to emulator
n120##########################################n120---------------------------------------------
121121
122#. Start your AVD (android Virtual Device) emulator.122#. Start your AVD (android Virtual Device) emulator.
141141
142Update the Android SDK142Update the Android SDK
t143################################t143=========================================
144144
145Periodically you may want to update your development environment, here's how:145Periodically you may want to update your development environment, here's how:
rev 21  |  foxhop  |  1357060067000  |  JSON

rev 20
rev 21
2121
22**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH en22**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH en
>vironment variable.>vironment variable.
tt23 
24Install Java environment
25===============================
26 
27We need the Java Development Kit (JDK).
28 
29Redhat or Fedora:
30 
31.. code-block:: bash
32 
33 yum install java-1.7.0-openjdk
34 yum install java-1.7.0-openjdk-devel
35 
36 
2337
24Create an android project on the cli38Create an android project on the cli
rev 20  |  foxhop  |  1344090826000  |  JSON

rev 19
rev 20
119    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk119    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk
120120
t121  A top secret command for building in debug mode and deploying to a running emut121  A top secret command for both building in debug mode and deploying to a runnin
>lator use the following command:>g emulator use the following command:
122122
123  .. code-block:: bash123  .. code-block:: bash
rev 19  |  foxhop  |  1335221278000  |  JSON

rev 18
rev 19
13 .. code-block:: bash13 .. code-block:: bash
14    14    
t15  # echo 'export PATH=$PATH:/home/fox/android/tools' >> ~/.bashrct15  # echo 'export PATH=$PATH:/home/fox/android/tools:/home/fox/android/platform-t
 >ools' >> ~/.bashrc
16  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc16  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc
1717
rev 18  |  foxhop  |  1335221110000  |  JSON

rev 17
rev 18
55
6* install java6* install java
n7* install the android sdkn7* install the android sdk::
88
nn9   http://developer.android.com/sdk/index.html
10 
9  - adjust your path environment variable11* adjust your path environment variable
10  12  
n11   .. code-block:: bashn13 .. code-block:: bash
12    14    
t13     # echo 'export PATH=$PATH:/home/fox/android/tools' >> ~/.bashrct15  # echo 'export PATH=$PATH:/home/fox/android/tools' >> ~/.bashrc
14     echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc16  echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc
1517
16* optionally install eclipse18* optionally install eclipse
rev 17  |  foxhop  |  1335127979000  |  JSON

rev 16
rev 17
122  122  
123   ant install 123   ant install 
tt124 
125 
126Update the Android SDK
127################################
128 
129Periodically you may want to update your development environment, here's how:
130 
131* open a Terminal (ctrl+alt+t)
132* type 'android' and press enter
133* click the 'Installed packages' tab
134* click the 'Update All...' button
rev 16  |  foxhop  |  1335127542000  |  JSON

rev 15
rev 16
88
9  - adjust your path environment variable9  - adjust your path environment variable
tt10  
11   .. code-block:: bash
12    
13     # echo 'export PATH=$PATH:/home/fox/android/tools' >> ~/.bashrc
14     echo 'export PATH=$PATH:/path/to/android/tools' >> ~/.bashrc
1015
11* optionally install eclipse16* optionally install eclipse
rev 15  |  foxhop  |  1315438329000  |  JSON

rev 14
rev 15
112    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk112    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk
113113
t114  A top secret shortcut for development building and deploying to an emulator ist114  A top secret command for building in debug mode and deploying to a running emu
> the following command>lator use the following command:
115115
116  .. code-block:: bash116  .. code-block:: bash
rev 14  |  foxhop  |  1315438068000  |  JSON

rev 13
rev 14
106    adb install ~/HelloWorld/bin/HelloWorld-debug.apk106    adb install ~/HelloWorld/bin/HelloWorld-debug.apk
107107
n108You might need to specify the device serial which is found on the top of the virn108  You might need to specify the device serial which is found on the top of the v
>tual device titlebar.>irtual device titlebar.
109109
110  .. code-block:: bash110  .. code-block:: bash
111   111   
112    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk112    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk
tt113 
114  A top secret shortcut for development building and deploying to an emulator is
 > the following command
115 
116  .. code-block:: bash
117  
118   ant install 
rev 13  |  foxhop  |  1315437838000  |  JSON

rev 12
rev 13
106    adb install ~/HelloWorld/bin/HelloWorld-debug.apk106    adb install ~/HelloWorld/bin/HelloWorld-debug.apk
107107
t108You might need to specify the device serial.t108You might need to specify the device serial which is found on the top of the vir
 >tual device titlebar.
109109
110  .. code-block:: bash110  .. code-block:: bash
rev 12  |  foxhop  |  1315437571000  |  JSON

rev 11
rev 12
100100
101#. Start your AVD (android Virtual Device) emulator.101#. Start your AVD (android Virtual Device) emulator.
n102#. Install your application using the adb script. n102#. Install your application using the adb script which exists in the platform-to
 >ols/ directory of the SDK. 
103103
104  .. code-block:: bash104  .. code-block:: bash
105  105  
106    adb install ~/HelloWorld/bin/HelloWorld-debug.apk106    adb install ~/HelloWorld/bin/HelloWorld-debug.apk
tt107 
108You might need to specify the device serial.
109 
110  .. code-block:: bash
111   
112    adb -s emulator-5554 install ~/HelloWorld/bin/HelloWorld-debug.apk
rev 11  |  foxhop  |  1315437308000  |  JSON

rev 10
rev 11
11* optionally install eclipse11* optionally install eclipse
12* create an android project12* create an android project
n13* create an android virtual devicen13* create an ADV (android virtual device)
1414
15**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH en15**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH en
>vironment variable.>vironment variable.
9595
96      ant debug96      ant debug
tt97 
98Install Debug application to emulator
99##########################################
100 
101#. Start your AVD (android Virtual Device) emulator.
102#. Install your application using the adb script. 
103 
104  .. code-block:: bash
105  
106    adb install ~/HelloWorld/bin/HelloWorld-debug.apk
rev 10  |  foxhop  |  1315436446000  |  JSON

rev 9
rev 10
f1Android programming on Linuxf1Android programming on Linux
2=================================2=================================
tt3 
4.. contents::
35
4* install java6* install java
rev 9  |  foxhop  |  1315436418000  |  JSON

rev 8
rev 9
82In production (release mode) the SDK will not sign the .apk file, you will need 82In production (release mode) the SDK will not sign the .apk file, you will need 
>to do this manually using the Keytool and Jarsigner.>to do this manually using the Keytool and Jarsigner.
8383
t84 t84 
85 
86Building in Debug Mode (Development)
87##########################################
88 
89#. Navigate to root of the project
90#. Compile the project using Ant.
91 
92   .. code-block:: bash
93 
94      ant debug
rev 8  |  foxhop  |  1315436138000  |  JSON

rev 7
rev 8
60---------------------------------------------60---------------------------------------------
6161
t62 android create project \t62modify your source code...
63    --package com.example.helloworld \63 
64    --activity HelloWorld \64 
65    --target 3 \65 
66    --path ~/HelloWorld66Building and Running from the Command Line
67-------------------------------------------------
68 
69Reference: http://developer.android.com/guide/developing/building/building-cmdli
 >ne.html
70 
71The Ant script compiles and builds your project into a .apk file which may be in
 >stalled on an emulator or device.  
72 
73Ant provides the following two build modes:
74 
75* Test or Debug (Development)
76* Release (Production)
77 
78Regardless of the build mode chosen the application must be signed before it can
 > be installed on an emulator or device.
79 
80In development (debug mode) the SDK will automatically sign your project with a 
 >development key.  An application signed with a development key cannot be distrib
 >uted.
81 
82In production (release mode) the SDK will not sign the .apk file, you will need 
 >to do this manually using the Keytool and Jarsigner.
83 
84 
rev 7  |  foxhop  |  1315433933000  |  JSON

rev 6
rev 7
11* create an android virtual device11* create an android virtual device
1212
t13 t13**Tip:** Add the platform-tools/ as well as the tools/ directory to your PATH en
 >vironment variable.
1414
15Create an android project on the cli15Create an android project on the cli
rev 6  |  foxhop  |  1315433802000  |  JSON

rev 5
rev 6
18reference: http://developer.android.com/guide/developing/projects/projects-cmdli18reference: http://developer.android.com/guide/developing/projects/projects-cmdli
>ne.html>ne.html
1919
n20The following cli command will create an android project skeleton named HelloAndn20The following cli command will create an android project skeleton named HelloWor
>roid in your home directory.>ld in your home directory.
2121
22.. code-block:: bash22.. code-block:: bash
2323
24 android create project \24 android create project \
n25    --package com.example.helloandroid \n25    --package com.example.helloworld \
26    --activity HelloAndroid \26    --activity HelloWorld \
27    --target 3 \27    --target 3 \
n28    --path ~/HelloAndroidn28    --path ~/HelloWorld
2929
30target30target
56 56 
57  This will follow the Java programming language standards.57  This will follow the Java programming language standards.
tt58 
59Programming the HelloWorld project
60---------------------------------------------
61 
62 android create project \
63    --package com.example.helloworld \
64    --activity HelloWorld \
65    --target 3 \
66    --path ~/HelloWorld
rev 5  |  foxhop  |  1315433582000  |  JSON

rev 4
rev 5
18reference: http://developer.android.com/guide/developing/projects/projects-cmdli18reference: http://developer.android.com/guide/developing/projects/projects-cmdli
>ne.html>ne.html
1919
n20The cli command below will create an android project named HelloAndroid in your n20The following cli command will create an android project skeleton named HelloAnd
>home directory.>roid in your home directory.
2121
22.. code-block:: bash22.. code-block:: bash
25    --package com.example.helloandroid \25    --package com.example.helloandroid \
26    --activity HelloAndroid \26    --activity HelloAndroid \
n27    --target 2 \n27    --target 3 \
28    --path ~/HelloAndroid28    --path ~/HelloAndroid
2929
t30Now if you navigate to ~/HelloAndroid you should see your project skeleton made t30target
>up of directories and files. 
31  The "build target" for your application. 
32 
33  This corresponds to an Android platform library (including any add-ons, such a
 >s Google APIs) that you would like to build your project against. 
34 
35  To see a list of available targets and their corresponding IDs, **execute: and
 >roid list targets.**
36 
37name 
38  The name for your project. 
39 
40  This is optional. If provided, this name will be used for your .apk filename w
 >hen you build your application.
41 
42path 
43  The location of your project directory. 
44 
45  If the directory does not exist, it will be created for you.
46 
47activity 
48  The name for your default Activity class. 
49 
50  This class file will be created for you inside <path_to_your_project>/src/<you
 >r_package_namespace_path>/ .
51 
52  This will also be used for your .apk filename unless you provide a name.
53 
54package 
55  the package namespace for your project
56 
57  This will follow the Java programming language standards.
rev 4  |  foxhop  |  1315433081000  |  JSON

rev 3
rev 4
16----------------------------------------------------16----------------------------------------------------
1717
tt18reference: http://developer.android.com/guide/developing/projects/projects-cmdli
 >ne.html
19 
18The cli command below will create an android project named HelloAndroid in your 20The cli command below will create an android project named HelloAndroid in your 
>home directory.>home directory.
1921
rev 3  |  foxhop  |  1315432964000  |  JSON

rev 2
rev 3
26    --path ~/HelloAndroid26    --path ~/HelloAndroid
2727
tt28Now if you navigate to ~/HelloAndroid you should see your project skeleton made 
 >up of directories and files.
rev 2  |  foxhop  |  1315432815000  |  JSON

rev 1
rev 2
t1android programming on linuxt1Android programming on Linux
2=================================2=================================
33
rev 1  |  foxhop  |  1315432803000  |  JSON

empty
rev 1
tt1android programming on linux
2=================================
3 
4* install java
5* install the android sdk
6 
7  - adjust your path environment variable
8 
9* optionally install eclipse
10* create an android project
11* create an android virtual device
12 
13 
14 
15Create an android project on the cli
16----------------------------------------------------
17 
18The cli command below will create an android project named HelloAndroid in your 
 >home directory.
19 
20.. code-block:: bash
21 
22 android create project \
23    --package com.example.helloandroid \
24    --activity HelloAndroid \
25    --target 2 \
26    --path ~/HelloAndroid
27