19
TOPS Technologies http://www.tops-int.com +91-99747 55006 ANDROID TRAINING – 7 EASY STEPS TO CREATE AN ANDROID APPLICATION PROJECT USING ECLIPSE IDE

24 09-2013 android training – 7 steps to create an android application using eclipse ide

Embed Size (px)

DESCRIPTION

One of the basic things taught at an Android training class would be the creation of an Android project. The aim of this article is to help the novice readers or Android learners get knowhow of how actually are the Android projects are created by the developers in actual work environment using the Eclipse plug-in or the command line tools.. By TOPS Technologies. http://www.tops-int.com

Citation preview

Page 1: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

TOPS Technologieshttp://www.tops-int.com+91-99747 55006

ANDROID TRAINING – 7 EASY STEPS TO CREATE AN ANDROID APPLICATION PROJECT USING ECLIPSE IDE

Page 2: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

ANDROID TRAINING – 7 EASY STEPS TO CREATE AN ANDROID APPLICATION PROJECT USING ECLIPSE IDE

Page 3: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

INTRODUCTION

Android is a software stack for mobile devices that includes an operating system, middleware and key applications.

Page 4: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

IN DETAILS• One of the basic things taught at an Android training class would be the

creation of an Android project. The aim of this article is to help the novice readers or Android learners get knowhow of how actually are the Android projects are created by the developers in actual work environment using the Eclipse plug-in or the command line tools.

• So before we start creating an Android Project, let us first learn what actually it is. An android project is like a container that stores application source code, directories and files such as AndroidManifest.xml, build.xml, project.properties, ant.properties etc. These projects can be created using the Eclipse tool and ADT or can also be generated using the SDK tools from command line. Once this project is developed, it gets eventually stored in .apk file format which can be installed on the device.

• However there are some pre-requisite tools or software that your PC should contain in order to support this development of Android applications project. Hence you should install the following software before actually starting the development process.

• Complete Android SDK environment along with packages

• Eclipse IDE with ADT Plugin

Page 5: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

5

The Android™ was built upon the open Linux kernel, and developed by Android, Inc., which is owned by Google.

Understand the structure of Android development

Open Handset Alliance - to develop open standards for mobile devices

Page 6: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

Architecture

Page 7: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

7

APPLICATIONS

Android provides a set of core applications: Email SMS Program Calendar Maps Browser Contacts Etc

All applications are written using the Java language.

Page 8: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

8

code

images

files

UI layouts

constants

Autogenerated resource list

Common file structure for Apps

Page 9: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

9

GUI

Page 10: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

10

APPLICATION FRAMEWORK

Enabling and simplifying the reuse of components Developers have full access to the same framework

APIs used by the core applications. Users are allowed to replace components. Each application can publish its capabilities which

other apps can use

Page 11: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

11

LIBRARIES

Including a set of C/C++ libraries used by components of the Android system

Exposed to developers through the Android application framework

Page 12: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

12

RUNTIME

Core Libraries Providing most of the functionality available in the core

libraries of the Java language APIs

Data Structures Utilities File Access Network Access Graphics etc.

Page 13: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

13

RUNTIME Software Development kit (Dalvik Virtual Machine )

Providing environment on which every Android application runs Each Android application runs in its own process, with its own

instance of the Dalvik VM. Dalvik has been written such that a device can run multiple

VMs efficiently.

.dex format is optimized for minimal memory footprint.

Page 14: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

Steps to Create an Android Project using Eclipse IDE

•In order to create a new Android project in Eclipse IDE, one would need to start up with selection of New option in the tool bar.

•This action will open up a window containing an Android folder. Double-click on this folder to open it and then select the option “Android Application Project” followed by “Next”. This will open up a form in window titled as “New Android Application”

•The form will prompt the user to enter the details like the application name, project name and package name. The user will have to select an option for the minimum required SDK, target SDK, compile with and theme boxes in the form

Page 15: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

NEXT STEP

• In the application name, you can enter any name which you want to give and is relevant to your application. The project name you enter besides the project name text will be the name of the project directory you are creating and hence will be visible in Eclipse. Package name text box field will take a namespace as its value and hence you need to enter the namespace for the app you are creating. The name should be unique adhering to the rules that are usually followed in naming the packages created in Java.

Page 16: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

THEN…

• The minimum required SDK indicates the lowest android version that the application created can support. Set this value to the lowest android version, in order to support as many devices as possible for your application project.

• Find out the highest Android version your application project and can support and hence enter the value of this version in the field opposite to the target SDK. Update this option, after testing your application whenever the newer Android versions are introduced. This will give you benefit of being able to use the latest features of the new platform.

• “Compile with” as the name suggests is the Android version or platform with which you want to compile your application. Be default this value will be set to the latest version of Android supported by your SDK installed in your PC.

• Theme is the style you want to apply for your application.

Page 17: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

AFTER ENTERING THE VALUES IN THE FORM, CLICK ON NEXT BUTTON TO MOVE FORWARD WITH PROJECT CREATION PROCESS.

The next button will lead you to a screen that will contain your project configuration details. A better option to handle this would be to keep the default selections as it is and just click on the Next button.

The next screen will prompt you to create an icon for your application. Just customize your icon in such a way that it is appropriate for your application. Once you are done with icon creation, just click on Next.

You can now start building your app by selecting an activity template. Select the option Blank Activity in the project and click Next.

The next screen will be the configuration or details of the activity template which can be left as it is. Finally click on finish and you have accomplished the activity of creating an Android application project.

\

Page 18: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

NOTE

• Hence you have successfully created an Android application project which by default will have a few files in it. You can start building your own app in order to add on to this project.

• To learn this process in detail or under the guidance of experts, take up the Android training course offered at a reputed Android training institute in your city like TOPS. TOPS Technologies is a leading IT training institute in India with over 18 branches across different cities. Hence you can easily find a TOPS training branch for your Android learning needs.

Page 19: 24 09-2013 android training – 7 steps to create an android application using eclipse ide

ADDRESS

• Baroda Office• 301 Saffron Complex,

Fatehgunj,Baroda.97253 55009