Tuesday, May 14, 2013

Android 1: Lesson 1


Lesson 1: Introduction To Java for Android Development Environment
INTRODUCTION
In this lesson you will be introduced to the Eclipse IDE (Integrated Development Environemnt)for Android Development. The development environment will be downloaded
Onto flash removable media so the environment can become portable.

LESSON OBJECTIVES
By the end of this lesson, you will be able to:
1.Download Eclipse
2. Download Android Development Tool Kit
3.Check that environment is ready to develop and test.
LEARNING SEQUENCE

Required Reading
Read the following:
Introduction To Development Environment
·        Eclipse
·        Android
·        Considerations for beginning programming.
Resources
View the following: 
1.      Eclipse
2.      Android Development
Assignments 
1.Download Android SDK at Developer Website

.      <o:p></o:p></span></p> <p class="ListParagraphCxSpLast" style="margin-bottom: 0.0001pt; text-indent: -0.25in;"> <!--[if !supportLists]2. Extract SDK to a Flash Drive 
    3.Name the folder "ADT"

4.Go into ADT Bundle Folder and go into Eclipse and click on the Eclipse Icon to open the Eclipse IDE.
5.When Eclipse opens you are able to choose a workspace loacation. Be sure to 
choose the location of your flashdriv the as the workspace. 
6. In the Eclipse software choose FILE>NEW>ADROID APPLICATION PROJECT
7.Then next pop out screen will create an opportunity to name the application. Put name into "Application Name" and it will then populate the other fields.
Then choose the lowest and highest level operating systems. 
It is recommended to have Android 2.2 for the lowest and Android 4.2 (Jellybean). You can leave the theme the way it is. Then click "next".
8.On the next pop up we choose to keep the "custom launcher icon" checked the "create activity" checked and "keep project in workspace" checked and keep all others unchecked. Choose "Next"
9.Click "next" on the next screen to got to the "Create Activity" click "Blank Activity".
10.On the next screen you can choose to change name but sure to keep navigation style as none.
11.Press Finish

Running The Emulator
1.Right below the word "source" there are two android icons the one the left is called "Android Sdk Manager" the one on the right is called "Android Virtual Device Manager" . 
2.Click on the one on the right,the "AVD(Android Virtual Device)" manager. And the Android Virtual Device manager will show up and on the top right of the pop up you should choose "new" choose a name which could be anything but "test" is a good option. For the device you can use the first option "Nexus 7" or "Galaxy Nexus" then the target will be filled in automatically. At any point now you want to check the bottom of the pop up box for warnings. The virtual device manger will then be back up and you should select the device you created and select "start: and the "launch options" box should pop up. The press "launch" and there will be a period of loading before the emulator shows. There might be a long period of waiting before the emulator completely loads.







No comments:

Post a Comment