1- Android Pre-course Exercise

Wednesday, September 19, 2012





1 -  First we will speak about how to set-up your  Environment for Android
 
Objectives of the exercise :
You can't develop for a platform if you aren't a user to it first.
Objectives of this exercise are get familiar with android OS and android phones. 
What we will do is to install the android SDK and start using the android emulator for some
time. After getting familiar with the emulator,
second part of the exercise is to  >>
 install some applications and use them on the emulator to know how android users use their phones and what they expect to find.
If you already have an android phone or tablet
 (or any other android device, you don't need to do this exercise).


Download Android SDK:
1. Go to

http://developer.android.com/sdk/index.html
download the SDK suitable for your platform, and extract it in a folder of your choice. Make sure that   “<androidsdk>/tools”   is in your PATH environment variable.

Note: In case you used the windows installer, your <android-sdk> dir should be
“C:\Program Files\Android\android-sdk”

2. Start the android SDK manager by running the batch file (or shell scrip on linux/mac)
<android-sdk>/tools/android
 

 
3. Go to “Available packages” on left and open “Android Repository” to install an SDK

(for example Android 2.1 API 7)
 
 
 

Accept license and install.
Note: Optionally explore and install other packages or SDKs


4. Create an AVD (Android Virtual Device)
From left menu, select “Virtual Devices” and from right buttons list, press “New”
 

Choose a name, select a target SDK (API level), optionally create an SD card, select a
skin (HVGA is suitable resolution for an emulator running on a laptop) and finally, press
“Create AVD”


5. Create another AVD with different parameters.





6. Select one of them and press “Start” from the right buttons menu. Android emulator
will start. 

➢ Notice the title of window of emulator. Starts with 5554, this is the phone
number of the emulator.

 


➢ Navigate through buttons of emulator and try some of installed
applications. (Spend at least 15 minutes (preferably 1 hour) exploring the
emulator).


➢ Start another emulator (may be with a different AVD) and notice its phone
number (it should be 5556).


➢ Make calls and missed calls between the 2 emulators.


➢ Send SMSes between them.


➢ Store contacts.


7. Use CTRL+F11 or CTRL+F12 to change phone from portrait to landscape and vice versa and see
how this affect applications.

and HaVe A NiCe TiMe  :) :)


0 comments:

Post a Comment