introduction to android coding

22
Tools required for developing Android applications • Java Development Kit(JDK) • Eclipse + ADT plugin • Android SDK platform

Upload: hari-krishna

Post on 27-Jun-2015

260 views

Category:

Technology


2 download

DESCRIPTION

I have seen many of the students and mobile users are attracted to smartphone and their mobile applications. This is the start to code an Android application at basic level

TRANSCRIPT

Page 1: Introduction to android coding

Tools required for developing Android applications

• Java Development Kit(JDK)• Eclipse + ADT plugin• Android SDK platform

Page 2: Introduction to android coding

Steps for installing Android SDK on eclipse

• Open the eclipse and create a workspace• Workspace is the place where your projects will be

saved• Next go to Window->Preferences• Then click on option Android• Provide the path of android SDK and click on apply• Then you can observe the platforms get installed

Page 3: Introduction to android coding
Page 4: Introduction to android coding
Page 5: Introduction to android coding

Steps for creating a new Android project

• Go to New->Android Application Project.• Application name must always start with a capital letter.• Package name can be any of your kind.Ex: com.view, button.click

• Keep minimum SDK as API 7• Target SDK is as your wish but it is better to maintain lower end platforms like API 8, API 10.

• Click None for theme option if API level < 11.• Click Next until Activity Name prompts• You can give your desired name for Activity• The name given for layout will be the file name for .xml file

• Click on Finish and your project is created

Page 6: Introduction to android coding
Page 7: Introduction to android coding
Page 8: Introduction to android coding
Page 9: Introduction to android coding
Page 10: Introduction to android coding
Page 11: Introduction to android coding
Page 12: Introduction to android coding
Page 13: Introduction to android coding

Android Virtual Device Manager (AVD)• This AVD is nothing but a smartphone which is useful to check the

outputs and test your code before using it in phone.• First go to Window->Android Virtual Device Manager.• Click on New option• Name can be any of your kind• Device also can be any of your kind• Target SDK must be equal to the platform you have selected for the

projectEx: I have chosen API 10 for my project, so I have to give target SDK as 10

• CPU may be as your wish. It may be ARM, Intel x86 or MIPS.• Keep RAM as 256 up-to API 11. After 10 put it as 512• Internal Memory as we need not use it may be of 100• SD Card size is of range starting from 9MB, so give there 10• Click OK, then you can see the AVD in ABD manager• If we are designing any camera application, then we need camera

otherwise place it as none for both front end and back end camera.

Page 14: Introduction to android coding
Page 15: Introduction to android coding
Page 16: Introduction to android coding
Page 17: Introduction to android coding
Page 18: Introduction to android coding

Launching Android Virtual Device

• There are 2 ways to launch your created AVD1.Manual Launch2.Launch by Eclipse

• To launch manually click on Window->Android Virtual Device Manager.

• Click on created AVD and click start.• Then select option LAUNCH.• Your AVD will start in few minutes.• Launch by eclipse is when you run the application and you didn’t find any emulator(AVD) already running.

Page 19: Introduction to android coding
Page 20: Introduction to android coding
Page 21: Introduction to android coding
Page 22: Introduction to android coding