User Tools

Site Tools


android-labs-s14:class-01

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
android-labs-s14:class-01 [2014/01/25 18:35]
prakhar created
android-labs-s14:class-01 [2014/01/27 00:16] (current)
prakhar
Line 1: Line 1:
 ====== Class 01 ====== ====== Class 01 ======
  
-The lecture ​gives an introduction to Android. It also touches upon Android architecture from a very high level, and then quickly jumps into building first Android Hello World App.+The class gives an introduction to Android. It also touches upon Android architecture from a very high level, and then quickly jumps into building first Android Hello World App.
  
 ===== What is Android? ===== ===== What is Android? =====
Line 55: Line 55:
 ===== Environment Setup ===== ===== Environment Setup =====
  
-:!: For a **fresh setup**, you can simply install ADT Bundle from Google. See [[http://​developer.android.com/​sdk/​installing/​bundle.html|'​Setting up ADT Bundle'​]] for details.+:!: For a **fresh setup**, you can simply install ADT Bundle from Google. See [[http://​developer.android.com/​sdk/​installing/​bundle.html|'​Setting up ADT Bundle'​]] for details. ​And, then, create an Android Virtual Device (AVD) ([[http://​developer.android.com/​tools/​devices/​index.html|Link]]) 
  
 :-\ Otherwise, if you want to work on **already installed Eclipse**, you can follow below mentioned steps to setup Android environment:​ :-\ Otherwise, if you want to work on **already installed Eclipse**, you can follow below mentioned steps to setup Android environment:​
Line 70: Line 71:
   * Creating Android Virtual Device (AVD) ([[http://​developer.android.com/​tools/​devices/​index.html|Link]])   * Creating Android Virtual Device (AVD) ([[http://​developer.android.com/​tools/​devices/​index.html|Link]])
  
-===== Building Your First App =====+===== Building Your First App - Hello World! ​=====
  
 Following are the steps to create a Hello World Project: Following are the steps to create a Hello World Project:
Line 77: Line 78:
 {{ :​android-labs-s14:​step02.png?​direct |}} {{ :​android-labs-s14:​step02.png?​direct |}}
  
-{{ :​android-labs-s14:​step03.png?direct |}}+{{ :​android-labs-s14:​step_03.png?direct |}}
  
 {{ :​android-labs-s14:​step04.png?​direct |}} {{ :​android-labs-s14:​step04.png?​direct |}}
Line 84: Line 85:
  
 {{ :​android-labs-s14:​step06.png?​direct |}} {{ :​android-labs-s14:​step06.png?​direct |}}
 +
 +  * Now, just click on '​Run'​ to launch your application on our device/​emulator.
 +
 +===== Anatomy of Android Project =====
 +
 +{{ :​android-labs-s14:​app_anatomy.png?​direct |}}
 +
 +  * **src** - Contains .java source files.
 +  * **gen** - Contains compiler generated R.java file, having references to resources in the project.
 +  * **Android 4.0 library** - Contains android.jar file, which has all class libraries needed for app.
 +  * **assets** - Contains all assets (e.g., a audio or a video file), used by app.
 +  * **bin** - Contains binary files (including .apk file) built by ADT during the build process.
 +  * **res** - Contains all resources used by app.
 +  * **AndroidManifest.xml** - Allows to specify permissions required by app, as well as other features like intent-filters,​ intent receivers, etc.
android-labs-s14/class-01.1390696549.txt.gz · Last modified: 2014/01/25 18:35 by prakhar