Difference between revisions of "CoursAndroid1"

From Fixme.ch
Jump to: navigation, search
(SDK Setup)
(SDK Setup)
Line 16: Line 16:
 
* Download the SDK for your plateform http://developer.android.com/sdk/index.html
 
* Download the SDK for your plateform http://developer.android.com/sdk/index.html
 
** Extract in /opt/android-sdk for example
 
** Extract in /opt/android-sdk for example
** Correct the sdk permissions
+
** Correct the sdk permissions (tgz perms are crappy)
   sudo find /opt/android-sdk -type d -exec chmod 0755 '{}' \;
+
   sudo chown -R <your-user>: /opt/android-sdk
  sudo find /opt/android-sdk -type f -perm /u=rwx -exec chmod 0755 '{}' \;
+
  chmod -R g-w /opt/android-sdk
 
** Add the tools to your path
 
** Add the tools to your path
 
   export PATH="$PATH:/opt/android-sdk/tools:/opt/android-sdk/platform-tools"
 
   export PATH="$PATH:/opt/android-sdk/tools:/opt/android-sdk/platform-tools"
* Run <tt>android</tt> from the cli to start the sdk manager as root
+
* Run <tt>android</tt> from the cli to start the sdk manager
 
* Install API version 15, 10 and 4 (Android 4.0.3, 2.3.3 and 1.6) from the sdk manager
 
* Install API version 15, 10 and 4 (Android 4.0.3, 2.3.3 and 1.6) from the sdk manager
 
* Install Eclipse >= 3.6, (easier to start developping with eclipse then quit when your comfortable)
 
* Install Eclipse >= 3.6, (easier to start developping with eclipse then quit when your comfortable)

Revision as of 23:39, 18 July 2012

Description

Content

  • Installation and configuration of the SDK (a VM will be at disposal for others)
  • Presentation of the tools
  • First application

SDK Setup

 sudo chown -R <your-user>: /opt/android-sdk
 chmod -R g-w /opt/android-sdk
    • Add the tools to your path
 export PATH="$PATH:/opt/android-sdk/tools:/opt/android-sdk/platform-tools"
  • Run android from the cli to start the sdk manager
  • Install API version 15, 10 and 4 (Android 4.0.3, 2.3.3 and 1.6) from the sdk manager
  • Install Eclipse >= 3.6, (easier to start developping with eclipse then quit when your comfortable)

Project leader

Participants