SlideShare a Scribd company logo
1 of 38
Download to read offline
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 1
Android Training
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Welcome to Android application development
Before we start this class, be sure you have your developmentenvironment set up. You need to:
• Download the Android SDK. (developer.android.com)
• Install the ADT plugin for Eclipse (if you’ll use the Eclipse IDE). (developer.android.com)
• Download the latest SDK tools and platforms using the SDK Manager.
• JDK
• Eclipse
• You can choose any environment (Windows, Linux, MacBook)
Feature –
• Free
• Huge docs available (google.com)
• Support site (to support dev)
• Shipment is free
• Open source
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 2
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 3
SDK Download & Installation
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Source of Software for Android
To Download Java JDK for Windows System, use below link and set environment variable:-
http://www.oracle.com/technetwork/java/javase/install-windows-189425.html
To Download Android SDK for Windows System, use below link : –
http://developer.android.com/sdk/index.html
To Download Android ADT plugin for Eclipse, use below link :-
http://developer.android.com/sdk/installing/installing-adt.html#Configure
To Download Eclipse (Eclipse 3.6.2 (Helios) or greater) , use below link :-
http://www.eclipse.org/downloads/
Configure environment setup (Java)
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 4
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Download the ADT Plugin
Other Way to Download/install ADT (if you already downloaded ADT, then leave this step and
follow up from point 9 onward :-
1. Start Eclipse, then select Help > Install New Software....
2. Click Add, in the top-right corner.
3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following
URL for the Location:
 https://dl-ssl.google.com/android/eclipse/
4. Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of
"https" (https is preferred for security reasons).
5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
6. In the next window, you'll see a list of the tools to be downloaded. Click Next.
7. Read and accept the license agreements, then click Finish.Note: If you get a security warning
saying that the authenticity or validity of the software can't be established, clickOK.
8. When the installation completes, restart Eclipse.
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 5
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Download the ADT Plugin
Download/install ADT (if you already downloaded ADT, then follow up below points :-
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 6
Name Package Size MD5 Checksum
ADT 20.0.2 ADT-20.0.2.zip 12388464 bytes 8e727bcdc9789
c900784a82e63
30ec22
1.Download the current ADT Plugin zip file from the table below (do not unpack it).
2.Follow steps 1 and 2 in the default install instructions (above).
3.In the Add Site dialog, click Archive.
4.Browse and select the downloaded zip file.
5.Enter a name for the local update site (e.g., "Android Plugin") in the "Name" field.
6.Click OK.
7.Follow the remaining procedures as listed for default installation above, starting from step 4.
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Configure the SDK
After you've installed ADT and restarted Eclipse, you must specify the location of your Android SDK
directory:
1. Select Window > Preferences... to open the Preferences panel (on Mac OS X,
select Eclipse > Preferences).
2. Select Android from the left panel.
3. You may see a dialog asking whether you want to send usage statistics to Google. If so, make
your choice and clickProceed.
4. For the SDK Location in the main panel, click Browse... and locate your downloaded Android
SDK directory (such asandroid-sdk-windows).
5. Click Apply, then OK.
Note – Prior to setup ADT or SDK, need to setup/config JDK1.5 or above
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 7
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Rakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Updating the ADT Plugin
1. Select Help > Check for Updates.If there are no updates available, a dialog will say so and
you're done.
2. If there are updates available, select Android DDMS, Android Development Tools, and Android
Hierarchy Viewer, then click Next.
3. In the Update Details dialog, click Next.
4. Read and accept the license agreement and then click Finish. This will download and install
the latest version of Android DDMS and Android Development Tools.
5. Restart Eclipse.
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 8
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure ADT
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 9
Installing ADT Plugin
• Help -> Install New Software -> Add -> Archive -> write the name of ADT (mandatory, give any
name)
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure ADT
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 10
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure ADT
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 11
Name – KTADB or SymADT or Anything
Location – Locate your ADT zip file (you downloaded)
Click OK button
Note – Please don’t unzip ADT
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure ADT
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 12
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure ADT
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 13
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure ADT
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 14
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure ADT
If checked “Always run in background”, this
dialog will disappear.
If clicked Details button, then current package
is installing will show like below, dialog with
Detailed view
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 15
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure ADT
While installing ADT, you may get warning
message like –
Note - You need to click OK button
Once, ADT install, it will ask to restart Eclipse,
Eclipse will automatic restart like –
Note – Click Restart Now
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 16
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure Android SDK
• Windows > Android Sdk Manager>select
package you want to install.
It will show all APIs level to be download.
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 17
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
How to Configure Android SDK
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 18
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
First Project “HelloWorld” in Android
Create first project in Android
1. Click File Menu
2. Click New
3. Click Other option (if you are not getting
Android option)
4. Drag Android Option at left side
5. Double click on Android Application
Project
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 19
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
First Project “HelloWorld” in Android
6 You will get right side screen
7 Write application name say HelloWorld
8 Click Next button
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 20
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
First Project “HelloWorld” in Android
9 You will get right side screen (only in latest
version of Android.
10 Click on Next button
11 Select Blank Activity
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 21
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
First Project “HelloWorld” in Android
12 Write Activity Name say
HelloMainActivity
13 It will generate Automatic Layout say
activity_hello_main
14 Click finish button
15 It will create Project with Project entire
directory structure.
MVC structure
12 M – Model (.java) – Business logic
13 V – View (.xml) - UI
14 C – Controller (manifest) – Bind up all res
Database Name – Sq lite
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 22
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 23
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure - Details
Project Directory Structure (main points)
1. Create a new Project. File > Project > Android > Android Project.
2. Name the project – HelloWorld,
Package Name: com.rakesh.helloworld,
Applicationname: HelloWorld,
CreateActivity: HelloWorldActivity
Finish
Project Structure
After you create a new project in eclipse, you will see the following top-level folders in your package
explorer.
• /src
• /gen
• /Android version
• /assets
• /bin
• /res
• /drawable
• /Layout
main.xml
• /Values
Strings.xml
• Androidmanifest.xml
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 24
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure - Details
The structure of an Android Application
• src –
• Contains the .java source files for your project.
• HelloWorldActivity.java.
• This file is the source file for your activity.
• Android 2.2 Library –
• This item contains one file, android.jar, which contains all the class libraries needed for an Android
application.
• gen –
• Contains the R.java file, a compiler-generated file that references all the resources found in your
• Android Project. You should not modify this file. As you add the files & folders in your application,
• Eclipse will automatically generate the content of R.java.
• assets –
• This folder contains all the assets used by your application, such as HTML, text files, databases, etc.
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 25
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure - Details
• res –
• This folder contains all the resources used in your application. It also contains a few
• sub-folders:
• drawable-<resolution>, layout, values.
• AndroidManifest.xml –
• This is the manifest file for your application.
• Here you specify the permissions needed by your application, as well as other features (such as intent-
filters, receivers, etc.)
•
• strings.xml –
• Located in the res > values folder, is a file for storing all the string constants and reference the string
using the @string identifier.
• This will ease your task of localizing your application to another language, all you need to do is replacing
the string values from the local applications and recompile your application.
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 26
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure - Details
AndroidManifes.xml –
 Every application must have the AndroidManifest.xml in its root directory.
 It provides essential information about the application to the Android system, information the system
must have before it can run any of the application's code.
 These information are
 Java package
 Components of the application
 Identify any user permissions the application requires, such as Internet access or read-access to the
user's contacts.
 Declare the minimum API level required by the application, based on which APIs the application uses.
 Declare hardware and software features used or required by the application, such as a camera,
bluetooth services, or a multitouch screen.
 API libraries the application needs to be linked against (other than the Android framework APIs), such as
the Google Maps library.
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 27
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure - Activity
package com.rakesh.helloworld;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;
import android.support.v4.app.NavUtils;
public class HelloMainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_hello_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_hello_main, menu);
return true;
}
}
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 28
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure - layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#505050" >
<TextView
android:id="@+id/text1"
android:textColor="#000000"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:padding="@dimen/padding_medium"
android:text="@string/hello_world"
tools:context=".HelloMainActivity" />
<TextView
android:id="@+id/text2"
android:textColor="#ffffff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/text1"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:padding="@dimen/padding_medium"
android:text="Welcome to Symphony Android Training Class"
tools:context=".HelloMainActivity" />
</RelativeLayout>
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 29
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure – Manifest
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.rakesh.helloworld"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".HelloMainActivity"
android:label="@string/title_activity_hello_main">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 30
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure
String.xml file
<resources>
<string name="app_name">HelloWorld</string>
<string name="hello_world">Hello world!</string>
<string name="menu_settings">Settings</string>
<string name="title">HelloMainActivity</string>
</resources>
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 31
Menu.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_settings"
android:title="@string/menu_settings"
android:orderInCategory="100"
android:showAsAction="never" />
</menu>
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Create emulator
1. Click on Window Menu
2. Click on ADT Manager
3. New Window will come
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 32
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Create emulator
1. Click on New Button at right side
2. next screen will come
3. Fill details
1. Name – SymAVD
2. Target – APIs like 8, 10,12,14,16 (as requirement)
3. Click on Create AVD
4. It will create one emulator
5. Then close Android Virtual Device Manager
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 33
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure – Result Screen
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 34
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
HelloWorld Project Structure – Result Screen
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 35
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Run HelloWorld Project
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 36
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Run HelloWorld Project
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 37
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619
Thank You.
Q ?
Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 38
Rakesh Kumar JhaRakesh Kumar Jha
rkjhaw@hotmail.com
Mob - 9886336619

More Related Content

What's hot

Android development session
Android development sessionAndroid development session
Android development sessionEsraa Ibrahim
 
Android deep dive
Android deep diveAndroid deep dive
Android deep diveAnuSahniNCI
 
Simple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test ApplicationSimple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test ApplicationAritra Mukherjee
 
Android Development: Build Android App from Scratch
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from ScratchTaufan Erfiyanto
 
Lecture #1 Creating your first android project
Lecture #1  Creating your first android projectLecture #1  Creating your first android project
Lecture #1 Creating your first android projectVitali Pekelis
 

What's hot (7)

Android development module
Android development moduleAndroid development module
Android development module
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installation
 
Android development session
Android development sessionAndroid development session
Android development session
 
Android deep dive
Android deep diveAndroid deep dive
Android deep dive
 
Simple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test ApplicationSimple Android Project (SAP)... A Test Application
Simple Android Project (SAP)... A Test Application
 
Android Development: Build Android App from Scratch
Android Development: Build Android App from ScratchAndroid Development: Build Android App from Scratch
Android Development: Build Android App from Scratch
 
Lecture #1 Creating your first android project
Lecture #1  Creating your first android projectLecture #1  Creating your first android project
Lecture #1 Creating your first android project
 

Similar to Android installation & configuration, and create HelloWorld Project

Steps to install android
Steps to install androidSteps to install android
Steps to install androidPrajyot Mainkar
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGapDoncho Minkov
 
PhoneGap Application Development - Santhi J Krishnan
PhoneGap Application Development - Santhi J KrishnanPhoneGap Application Development - Santhi J Krishnan
PhoneGap Application Development - Santhi J KrishnanOrisysIndia
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdfRebaMaheen
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdfRebaMaheen
 
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...NicheTech Com. Solutions Pvt. Ltd.
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorialmaster760
 
Android installation
Android installationAndroid installation
Android installationDurai S
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Frank Pham
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptxSundaresanB5
 
Android software development – the first few hours
Android software development – the first few hoursAndroid software development – the first few hours
Android software development – the first few hourssjmarsh
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdkTran Le Hoan
 
Methods to set up android app development environment
Methods to set up android app development environmentMethods to set up android app development environment
Methods to set up android app development environmentastoria0128
 

Similar to Android installation & configuration, and create HelloWorld Project (20)

Webinar on Google Android SDK
Webinar on Google Android SDKWebinar on Google Android SDK
Webinar on Google Android SDK
 
Steps to install android
Steps to install androidSteps to install android
Steps to install android
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGap
 
PhoneGap Application Development - Santhi J Krishnan
PhoneGap Application Development - Santhi J KrishnanPhoneGap Application Development - Santhi J Krishnan
PhoneGap Application Development - Santhi J Krishnan
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
 
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Android installation
Android installationAndroid installation
Android installation
 
Android tio manual
Android tio manualAndroid tio manual
Android tio manual
 
Android tio manual
Android tio manualAndroid tio manual
Android tio manual
 
First android app for workshop using android studio
First android app for workshop using android studio First android app for workshop using android studio
First android app for workshop using android studio
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 
Android
AndroidAndroid
Android
 
Android software development – the first few hours
Android software development – the first few hoursAndroid software development – the first few hours
Android software development – the first few hours
 
Android course (lecture2)
Android course (lecture2)Android course (lecture2)
Android course (lecture2)
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdk
 
Methods to set up android app development environment
Methods to set up android app development environmentMethods to set up android app development environment
Methods to set up android app development environment
 

More from Rakesh Jha

Whitep paper on Emerging java and .net technology and critical trends
Whitep paper on Emerging java and .net technology and critical trendsWhitep paper on Emerging java and .net technology and critical trends
Whitep paper on Emerging java and .net technology and critical trendsRakesh Jha
 
Ways to be a great project manager
Ways to be a great project managerWays to be a great project manager
Ways to be a great project managerRakesh Jha
 
What is mobile wallet
What is mobile walletWhat is mobile wallet
What is mobile walletRakesh Jha
 
Cordova vs xamarin vs titanium
Cordova vs xamarin vs titaniumCordova vs xamarin vs titanium
Cordova vs xamarin vs titaniumRakesh Jha
 
Mobile applications testing (challenges, tools & techniques)
Mobile applications testing (challenges, tools & techniques)Mobile applications testing (challenges, tools & techniques)
Mobile applications testing (challenges, tools & techniques)Rakesh Jha
 
Mobile testing practices
Mobile testing practicesMobile testing practices
Mobile testing practicesRakesh Jha
 
Advanced programing in phonegap
Advanced programing in phonegapAdvanced programing in phonegap
Advanced programing in phonegapRakesh Jha
 
Introduction phonegap
Introduction phonegapIntroduction phonegap
Introduction phonegapRakesh Jha
 
Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap Rakesh Jha
 
Basics of css3
Basics of css3 Basics of css3
Basics of css3 Rakesh Jha
 
Introduction to jquery mobile with Phonegap
Introduction to jquery mobile with PhonegapIntroduction to jquery mobile with Phonegap
Introduction to jquery mobile with PhonegapRakesh Jha
 
Basics of HTML5 for Phonegap
Basics of HTML5 for PhonegapBasics of HTML5 for Phonegap
Basics of HTML5 for PhonegapRakesh Jha
 
Introduction of phonegap installation and configuration of Phonegap with An...
Introduction of phonegap   installation and configuration of Phonegap with An...Introduction of phonegap   installation and configuration of Phonegap with An...
Introduction of phonegap installation and configuration of Phonegap with An...Rakesh Jha
 
Android ndk - Introduction
Android ndk  - IntroductionAndroid ndk  - Introduction
Android ndk - IntroductionRakesh Jha
 
Native development kit (ndk) introduction
Native development kit (ndk)  introductionNative development kit (ndk)  introduction
Native development kit (ndk) introductionRakesh Jha
 
User experience and interactions design
User experience and interactions design User experience and interactions design
User experience and interactions design Rakesh Jha
 
Android coding standard
Android coding standard Android coding standard
Android coding standard Rakesh Jha
 
Optimisation and performance in Android
Optimisation and performance in AndroidOptimisation and performance in Android
Optimisation and performance in AndroidRakesh Jha
 
Multithreading and concurrency in android
Multithreading and concurrency in androidMultithreading and concurrency in android
Multithreading and concurrency in androidRakesh Jha
 
Advance ui development and design
Advance ui  development and design Advance ui  development and design
Advance ui development and design Rakesh Jha
 

More from Rakesh Jha (20)

Whitep paper on Emerging java and .net technology and critical trends
Whitep paper on Emerging java and .net technology and critical trendsWhitep paper on Emerging java and .net technology and critical trends
Whitep paper on Emerging java and .net technology and critical trends
 
Ways to be a great project manager
Ways to be a great project managerWays to be a great project manager
Ways to be a great project manager
 
What is mobile wallet
What is mobile walletWhat is mobile wallet
What is mobile wallet
 
Cordova vs xamarin vs titanium
Cordova vs xamarin vs titaniumCordova vs xamarin vs titanium
Cordova vs xamarin vs titanium
 
Mobile applications testing (challenges, tools & techniques)
Mobile applications testing (challenges, tools & techniques)Mobile applications testing (challenges, tools & techniques)
Mobile applications testing (challenges, tools & techniques)
 
Mobile testing practices
Mobile testing practicesMobile testing practices
Mobile testing practices
 
Advanced programing in phonegap
Advanced programing in phonegapAdvanced programing in phonegap
Advanced programing in phonegap
 
Introduction phonegap
Introduction phonegapIntroduction phonegap
Introduction phonegap
 
Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap
 
Basics of css3
Basics of css3 Basics of css3
Basics of css3
 
Introduction to jquery mobile with Phonegap
Introduction to jquery mobile with PhonegapIntroduction to jquery mobile with Phonegap
Introduction to jquery mobile with Phonegap
 
Basics of HTML5 for Phonegap
Basics of HTML5 for PhonegapBasics of HTML5 for Phonegap
Basics of HTML5 for Phonegap
 
Introduction of phonegap installation and configuration of Phonegap with An...
Introduction of phonegap   installation and configuration of Phonegap with An...Introduction of phonegap   installation and configuration of Phonegap with An...
Introduction of phonegap installation and configuration of Phonegap with An...
 
Android ndk - Introduction
Android ndk  - IntroductionAndroid ndk  - Introduction
Android ndk - Introduction
 
Native development kit (ndk) introduction
Native development kit (ndk)  introductionNative development kit (ndk)  introduction
Native development kit (ndk) introduction
 
User experience and interactions design
User experience and interactions design User experience and interactions design
User experience and interactions design
 
Android coding standard
Android coding standard Android coding standard
Android coding standard
 
Optimisation and performance in Android
Optimisation and performance in AndroidOptimisation and performance in Android
Optimisation and performance in Android
 
Multithreading and concurrency in android
Multithreading and concurrency in androidMultithreading and concurrency in android
Multithreading and concurrency in android
 
Advance ui development and design
Advance ui  development and design Advance ui  development and design
Advance ui development and design
 

Recently uploaded

The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...Aggregage
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintMahmoud Rabie
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7DianaGray10
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.YounusS2
 
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UbiTrack UK
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024SkyPlanner
 
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfMachine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfAijun Zhang
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxMatsuo Lab
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxGDSC PJATK
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1DianaGray10
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDELiveplex
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAshyamraj55
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Will Schroeder
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopBachir Benyammi
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding TeamAdam Moalla
 
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfJamie (Taka) Wang
 

Recently uploaded (20)

The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership Blueprint
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
 
20230104 - machine vision
20230104 - machine vision20230104 - machine vision
20230104 - machine vision
 
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
 
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfMachine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdf
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptx
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 Workshop
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team
 
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
activity_diagram_combine_v4_20190827.pdfactivity_diagram_combine_v4_20190827.pdf
 

Android installation & configuration, and create HelloWorld Project

  • 1. Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 1 Android Training Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 2. Welcome to Android application development Before we start this class, be sure you have your developmentenvironment set up. You need to: • Download the Android SDK. (developer.android.com) • Install the ADT plugin for Eclipse (if you’ll use the Eclipse IDE). (developer.android.com) • Download the latest SDK tools and platforms using the SDK Manager. • JDK • Eclipse • You can choose any environment (Windows, Linux, MacBook) Feature – • Free • Huge docs available (google.com) • Support site (to support dev) • Shipment is free • Open source Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 2 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 3. Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 3 SDK Download & Installation Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 4. Source of Software for Android To Download Java JDK for Windows System, use below link and set environment variable:- http://www.oracle.com/technetwork/java/javase/install-windows-189425.html To Download Android SDK for Windows System, use below link : – http://developer.android.com/sdk/index.html To Download Android ADT plugin for Eclipse, use below link :- http://developer.android.com/sdk/installing/installing-adt.html#Configure To Download Eclipse (Eclipse 3.6.2 (Helios) or greater) , use below link :- http://www.eclipse.org/downloads/ Configure environment setup (Java) Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 4 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 5. Download the ADT Plugin Other Way to Download/install ADT (if you already downloaded ADT, then leave this step and follow up from point 9 onward :- 1. Start Eclipse, then select Help > Install New Software.... 2. Click Add, in the top-right corner. 3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:  https://dl-ssl.google.com/android/eclipse/ 4. Click OK Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons). 5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next. 6. In the next window, you'll see a list of the tools to be downloaded. Click Next. 7. Read and accept the license agreements, then click Finish.Note: If you get a security warning saying that the authenticity or validity of the software can't be established, clickOK. 8. When the installation completes, restart Eclipse. Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 5 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 6. Download the ADT Plugin Download/install ADT (if you already downloaded ADT, then follow up below points :- Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 6 Name Package Size MD5 Checksum ADT 20.0.2 ADT-20.0.2.zip 12388464 bytes 8e727bcdc9789 c900784a82e63 30ec22 1.Download the current ADT Plugin zip file from the table below (do not unpack it). 2.Follow steps 1 and 2 in the default install instructions (above). 3.In the Add Site dialog, click Archive. 4.Browse and select the downloaded zip file. 5.Enter a name for the local update site (e.g., "Android Plugin") in the "Name" field. 6.Click OK. 7.Follow the remaining procedures as listed for default installation above, starting from step 4. Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 7. Configure the SDK After you've installed ADT and restarted Eclipse, you must specify the location of your Android SDK directory: 1. Select Window > Preferences... to open the Preferences panel (on Mac OS X, select Eclipse > Preferences). 2. Select Android from the left panel. 3. You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and clickProceed. 4. For the SDK Location in the main panel, click Browse... and locate your downloaded Android SDK directory (such asandroid-sdk-windows). 5. Click Apply, then OK. Note – Prior to setup ADT or SDK, need to setup/config JDK1.5 or above Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 7 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619 Rakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 8. Updating the ADT Plugin 1. Select Help > Check for Updates.If there are no updates available, a dialog will say so and you're done. 2. If there are updates available, select Android DDMS, Android Development Tools, and Android Hierarchy Viewer, then click Next. 3. In the Update Details dialog, click Next. 4. Read and accept the license agreement and then click Finish. This will download and install the latest version of Android DDMS and Android Development Tools. 5. Restart Eclipse. Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 8 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 9. How to Configure ADT Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 9 Installing ADT Plugin • Help -> Install New Software -> Add -> Archive -> write the name of ADT (mandatory, give any name) Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 10. How to Configure ADT Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 10 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 11. How to Configure ADT Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 11 Name – KTADB or SymADT or Anything Location – Locate your ADT zip file (you downloaded) Click OK button Note – Please don’t unzip ADT Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 12. How to Configure ADT Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 12 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 13. How to Configure ADT Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 13 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 14. How to Configure ADT Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 14 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 15. How to Configure ADT If checked “Always run in background”, this dialog will disappear. If clicked Details button, then current package is installing will show like below, dialog with Detailed view Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 15 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 16. How to Configure ADT While installing ADT, you may get warning message like – Note - You need to click OK button Once, ADT install, it will ask to restart Eclipse, Eclipse will automatic restart like – Note – Click Restart Now Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 16 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 17. How to Configure Android SDK • Windows > Android Sdk Manager>select package you want to install. It will show all APIs level to be download. Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 17 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 18. How to Configure Android SDK Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 18 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 19. First Project “HelloWorld” in Android Create first project in Android 1. Click File Menu 2. Click New 3. Click Other option (if you are not getting Android option) 4. Drag Android Option at left side 5. Double click on Android Application Project Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 19 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 20. First Project “HelloWorld” in Android 6 You will get right side screen 7 Write application name say HelloWorld 8 Click Next button Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 20 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 21. First Project “HelloWorld” in Android 9 You will get right side screen (only in latest version of Android. 10 Click on Next button 11 Select Blank Activity Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 21 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 22. First Project “HelloWorld” in Android 12 Write Activity Name say HelloMainActivity 13 It will generate Automatic Layout say activity_hello_main 14 Click finish button 15 It will create Project with Project entire directory structure. MVC structure 12 M – Model (.java) – Business logic 13 V – View (.xml) - UI 14 C – Controller (manifest) – Bind up all res Database Name – Sq lite Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 22 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 23. HelloWorld Project Structure Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 23 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 24. HelloWorld Project Structure - Details Project Directory Structure (main points) 1. Create a new Project. File > Project > Android > Android Project. 2. Name the project – HelloWorld, Package Name: com.rakesh.helloworld, Applicationname: HelloWorld, CreateActivity: HelloWorldActivity Finish Project Structure After you create a new project in eclipse, you will see the following top-level folders in your package explorer. • /src • /gen • /Android version • /assets • /bin • /res • /drawable • /Layout main.xml • /Values Strings.xml • Androidmanifest.xml Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 24 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 25. HelloWorld Project Structure - Details The structure of an Android Application • src – • Contains the .java source files for your project. • HelloWorldActivity.java. • This file is the source file for your activity. • Android 2.2 Library – • This item contains one file, android.jar, which contains all the class libraries needed for an Android application. • gen – • Contains the R.java file, a compiler-generated file that references all the resources found in your • Android Project. You should not modify this file. As you add the files & folders in your application, • Eclipse will automatically generate the content of R.java. • assets – • This folder contains all the assets used by your application, such as HTML, text files, databases, etc. Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 25 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 26. HelloWorld Project Structure - Details • res – • This folder contains all the resources used in your application. It also contains a few • sub-folders: • drawable-<resolution>, layout, values. • AndroidManifest.xml – • This is the manifest file for your application. • Here you specify the permissions needed by your application, as well as other features (such as intent- filters, receivers, etc.) • • strings.xml – • Located in the res > values folder, is a file for storing all the string constants and reference the string using the @string identifier. • This will ease your task of localizing your application to another language, all you need to do is replacing the string values from the local applications and recompile your application. Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 26 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 27. HelloWorld Project Structure - Details AndroidManifes.xml –  Every application must have the AndroidManifest.xml in its root directory.  It provides essential information about the application to the Android system, information the system must have before it can run any of the application's code.  These information are  Java package  Components of the application  Identify any user permissions the application requires, such as Internet access or read-access to the user's contacts.  Declare the minimum API level required by the application, based on which APIs the application uses.  Declare hardware and software features used or required by the application, such as a camera, bluetooth services, or a multitouch screen.  API libraries the application needs to be linked against (other than the Android framework APIs), such as the Google Maps library. Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 27 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 28. HelloWorld Project Structure - Activity package com.rakesh.helloworld; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import android.support.v4.app.NavUtils; public class HelloMainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_hello_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_hello_main, menu); return true; } } Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 28 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 29. HelloWorld Project Structure - layout <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#505050" > <TextView android:id="@+id/text1" android:textColor="#000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:padding="@dimen/padding_medium" android:text="@string/hello_world" tools:context=".HelloMainActivity" /> <TextView android:id="@+id/text2" android:textColor="#ffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/text1" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:padding="@dimen/padding_medium" android:text="Welcome to Symphony Android Training Class" tools:context=".HelloMainActivity" /> </RelativeLayout> Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 29 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 30. HelloWorld Project Structure – Manifest <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.rakesh.helloworld" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15"/> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme"> <activity android:name=".HelloMainActivity" android:label="@string/title_activity_hello_main"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest> Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 30 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 31. HelloWorld Project Structure String.xml file <resources> <string name="app_name">HelloWorld</string> <string name="hello_world">Hello world!</string> <string name="menu_settings">Settings</string> <string name="title">HelloMainActivity</string> </resources> Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 31 Menu.xml <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/menu_settings" android:title="@string/menu_settings" android:orderInCategory="100" android:showAsAction="never" /> </menu> Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 32. Create emulator 1. Click on Window Menu 2. Click on ADT Manager 3. New Window will come Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 32 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 33. Create emulator 1. Click on New Button at right side 2. next screen will come 3. Fill details 1. Name – SymAVD 2. Target – APIs like 8, 10,12,14,16 (as requirement) 3. Click on Create AVD 4. It will create one emulator 5. Then close Android Virtual Device Manager Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 33 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 34. HelloWorld Project Structure – Result Screen Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 34 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 35. HelloWorld Project Structure – Result Screen Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 35 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 36. Run HelloWorld Project Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 36 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 37. Run HelloWorld Project Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 37 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619
  • 38. Thank You. Q ? Copyright © 2012 SymphonyTeleca Corp. All rights reserved. CONFIDENTIAL AND PROPRIETARY 38 Rakesh Kumar JhaRakesh Kumar Jha rkjhaw@hotmail.com Mob - 9886336619