SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Lecture 4: Setting Up for
Development
Eyad M. Almassri
1
Overview
• Learn how to set up our Android development
environment
• Look at many of the tools provided with the
Android SDK
• Review the Android SDK License Agreement
• Learn about many important SDK packages
• Look at the sample applications available with
the SDK
2
Configuring Your
Development Environment
• Android SDK compatible with Windows,
Macintosh, or Linux systems
• Installation requirements for using this book:
– Java Development Kit (JDK), Version 13
• http://www.oracle.com/technetwork/java/java
se/downloads/index.html
– Android Studio (includes the Android SDK)
• http://d.android.com/sdk/index.html
3
Included with Android Studio
• Android Studio
– SDK tools
– Platform tools
– The latest Android platform
– The latest Android system image for the
emulator
4
Basic Installation Process
1. Download and install the appropriate JDK.
2. Download and install or unzip the appropriate
Android Studio package for your Operating
System.
3. Launch Android Studio and use the Android
SDK Manager to download and install
specific Android platform versions and other
components.
4. Install appropriate USB drivers for device
debugging, if necessary.
5. Configure your device(s) for debugging.
6. Start developing.5
Basic Installation Process
6
Upgrading Android Studio
and the Android SDK
• To stay up-to-date with the latest
advancements:
– Upgrade from time to time
• Updates include:
– New, updated, or removed features
– Package name changes
– Updated tools
– Essential documents
• Overview of Changes
• API Diff Report
• Release Notes
– See http://d.android.com/sdk/installing/adding-
packages.html7
Exploring the Android SDK
• Android SDK major components:
– Android SDK Platform by version
– Platform tools
– SDK Build Tools
– System images
– Google APIs
– Sources for Android SDK
– Extras
– Sample applications
8
The Android SDK License
Agreement
• Before downloading the SDK, you must
agree to the Android SDK License
Agreement.
– This agreement is between you and
Google.
– Make sure that you understand this
license even if someone else has
accepted the agreement on your behalf!
9
Popular Third-Party Android
APIs
• Available outside the core Android SDK
• Installed separately
• Some are from Google, others from device
manufacturers and other providers
10
Popular Third-Party Android
APIs (Cont’d)
• Android Support Library
• Google Mobile Ads SDK
(com.google.android.gms.ads.*)
• Google Analytics SDK for Android
(com.google.android.gms.analytics.*)
 Android Cloud Messaging for Android (GCM)
(com.google.android.gms.gcm)
 Google App Indexing
(com.google.android.gms.appindexing)
• Google App Invites
(com.google.android.gms.appinvite)
• Google Play Game Services
(com.google.android.gms.games)
• Google Fit (com.google.android.gms.fitness)
11
Exploring the Core
Android Tools
• Android Studio
– Where you spend most of your time
developing your apps
– Provides wizards for creating, debugging,
and deploying Android apps
– Several buttons available on the toolbar for
performing helpful actions
12
Android Studio
• Launch the Android Virtual Device Manager
• Launch the Android SDK Manager
• Launch the Android Device Monitor
13
Android Studio (Cont’d)
14
Android SDK and AVD
Managers
• The first Android toolbar icon launches the
Android Virtual Device Manager.
• The second Android toolbar icon launches
the Android SDK Manager.
15
Android SDK and AVD
Managers (Cont’d)
16
Android SDK and AVD
Managers (Cont’d)
17
Android SDK and AVD
Managers (Cont’d)
18
Android Emulator
• Helpful tool used for designing and
developing Android applications
• Runs on your computer
• Behaves like a real device
• Load Android applications into the emulator
to test and debug them
• Generic device, not tied to any one specific
configuration
• Valuable, but should not be used as a
replacement for testing on actual target
devices
19
Android Emulator (Cont’d)
20
Android Emulator (Cont’d)
21

Weitere ähnliche Inhalte

Was ist angesagt?

Android application development ppt
Android application development pptAndroid application development ppt
Android application development pptGautam Kumar
 
Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersBoom Shukla
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidzeelpatel0504
 
Android Web app
Android Web app Android Web app
Android Web app Sumit Kumar
 
Introduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportIntroduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportAtul Panjwani
 
Introduction to Android development - Presentation
Introduction to Android development - PresentationIntroduction to Android development - Presentation
Introduction to Android development - PresentationAtul Panjwani
 
Android Development Workshop
Android Development WorkshopAndroid Development Workshop
Android Development WorkshopPeter Robinett
 
Android development, Android
Android development, AndroidAndroid development, Android
Android development, AndroidNetConnectWeb
 
Android Programming Seminar
Android Programming SeminarAndroid Programming Seminar
Android Programming SeminarNhat Nguyen
 
android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginnerAjailal Parackal
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application DevelopmentBenny Skogberg
 
Project proposal android operating system
Project proposal android operating systemProject proposal android operating system
Project proposal android operating systemAttiq12
 
Android Training - Part 2
Android Training - Part 2Android Training - Part 2
Android Training - Part 2Tbldevelopment
 
Android Overview
Android OverviewAndroid Overview
Android Overviewatomi
 
Android Development: The Basics
Android Development: The BasicsAndroid Development: The Basics
Android Development: The BasicsMike Desjardins
 
Android app ppt
Android app pptAndroid app ppt
Android app pptADI ADARSH
 

Was ist angesagt? (20)

Android ppt
Android pptAndroid ppt
Android ppt
 
Android application development ppt
Android application development pptAndroid application development ppt
Android application development ppt
 
Android Training
Android TrainingAndroid Training
Android Training
 
Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginners
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android Web app
Android Web app Android Web app
Android Web app
 
Introduction to Android development - Presentation Report
Introduction to Android development - Presentation ReportIntroduction to Android development - Presentation Report
Introduction to Android development - Presentation Report
 
Introduction to Android development - Presentation
Introduction to Android development - PresentationIntroduction to Android development - Presentation
Introduction to Android development - Presentation
 
Android Programming
Android ProgrammingAndroid Programming
Android Programming
 
Android Development Workshop
Android Development WorkshopAndroid Development Workshop
Android Development Workshop
 
Android development, Android
Android development, AndroidAndroid development, Android
Android development, Android
 
Android Programming Seminar
Android Programming SeminarAndroid Programming Seminar
Android Programming Seminar
 
android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginner
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Project proposal android operating system
Project proposal android operating systemProject proposal android operating system
Project proposal android operating system
 
Android Training - Part 2
Android Training - Part 2Android Training - Part 2
Android Training - Part 2
 
Android Overview
Android OverviewAndroid Overview
Android Overview
 
Android Marshmallow
Android MarshmallowAndroid Marshmallow
Android Marshmallow
 
Android Development: The Basics
Android Development: The BasicsAndroid Development: The Basics
Android Development: The Basics
 
Android app ppt
Android app pptAndroid app ppt
Android app ppt
 

Ähnlich wie Lec004 setting up for development

9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)Peter Mburu
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android ApplicationNandini Prabhu
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application DevelopmentArief Gunawan
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopKasun Dananjaya Delgolla
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_authlzongren
 
Mobile Applicaiton Development Unit 2.pptx
Mobile Applicaiton Development Unit 2.pptxMobile Applicaiton Development Unit 2.pptx
Mobile Applicaiton Development Unit 2.pptxnihitagrawal4
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.pptBijayKc16
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studioAbdul Basit
 
Session 1 android overview
Session 1   android overviewSession 1   android overview
Session 1 android overviewAdham Enaya
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial pptRehna Renu
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdkTran Le Hoan
 
3. Android Architecture.pptx
3. Android Architecture.pptx3. Android Architecture.pptx
3. Android Architecture.pptxHarshiniB11
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorialDanish_k
 

Ähnlich wie Lec004 setting up for development (20)

9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)
 
Notes Unit2.pptx
Notes Unit2.pptxNotes Unit2.pptx
Notes Unit2.pptx
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android Application
 
ANDROID PPT 1.pdf
ANDROID PPT 1.pdfANDROID PPT 1.pdf
ANDROID PPT 1.pdf
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application Development
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development Workshop
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Mobile Applicaiton Development Unit 2.pptx
Mobile Applicaiton Development Unit 2.pptxMobile Applicaiton Development Unit 2.pptx
Mobile Applicaiton Development Unit 2.pptx
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.ppt
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
 
Session 1 android overview
Session 1   android overviewSession 1   android overview
Session 1 android overview
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Android tutorial ppt
Android tutorial pptAndroid tutorial ppt
Android tutorial ppt
 
Android chapter02-setup1-sdk
Android chapter02-setup1-sdkAndroid chapter02-setup1-sdk
Android chapter02-setup1-sdk
 
3. Android Architecture.pptx
3. Android Architecture.pptx3. Android Architecture.pptx
3. Android Architecture.pptx
 
Android
AndroidAndroid
Android
 
Android App development I
Android App development IAndroid App development I
Android App development I
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 

Mehr von Eyad Almasri

Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...
Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...
Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...Eyad Almasri
 
Chapter 8 / Electronic Payment
Chapter 8 / Electronic  PaymentChapter 8 / Electronic  Payment
Chapter 8 / Electronic PaymentEyad Almasri
 
Chapter 7/Social Computing
Chapter 7/Social ComputingChapter 7/Social Computing
Chapter 7/Social ComputingEyad Almasri
 
Chapter 6/Mobile Commerce and Ubiquitous Computing Technology of E-Business
Chapter 6/Mobile Commerce  and Ubiquitous Computing Technology of E-BusinessChapter 6/Mobile Commerce  and Ubiquitous Computing Technology of E-Business
Chapter 6/Mobile Commerce and Ubiquitous Computing Technology of E-BusinessEyad Almasri
 
Chapter 5/Innovative EC Systems: From E-Government to E-Learning, Collaborat...
Chapter 5/Innovative EC Systems: From E-Government to  E-Learning, Collaborat...Chapter 5/Innovative EC Systems: From E-Government to  E-Learning, Collaborat...
Chapter 5/Innovative EC Systems: From E-Government to E-Learning, Collaborat...Eyad Almasri
 
Chapter 4/B2B E-Commerce – Technology of E-Business
Chapter 4/B2B E-Commerce  – Technology of E-BusinessChapter 4/B2B E-Commerce  – Technology of E-Business
Chapter 4/B2B E-Commerce – Technology of E-BusinessEyad Almasri
 
Chapter 3/Retailing In Electronic Commerce: Products and Services Technology...
Chapter 3/Retailing In Electronic Commerce:  Products and Services Technology...Chapter 3/Retailing In Electronic Commerce:  Products and Services Technology...
Chapter 3/Retailing In Electronic Commerce: Products and Services Technology...Eyad Almasri
 
Chapter 1/ Overview of Electronic Commerce Technology of E-Business
Chapter 1/ Overview of Electronic Commerce Technology of E-BusinessChapter 1/ Overview of Electronic Commerce Technology of E-Business
Chapter 1/ Overview of Electronic Commerce Technology of E-BusinessEyad Almasri
 
الوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوب
الوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوبالوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوب
الوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوبEyad Almasri
 
الوحدة السابعة - شبكة الأنترنت - مهارات الحاسوب
الوحدة السابعة - شبكة الأنترنت - مهارات الحاسوبالوحدة السابعة - شبكة الأنترنت - مهارات الحاسوب
الوحدة السابعة - شبكة الأنترنت - مهارات الحاسوبEyad Almasri
 
الوحدة السادسة - شبكات الحاسوب - مهارات الحاسوب
الوحدة السادسة - شبكات الحاسوب - مهارات الحاسوبالوحدة السادسة - شبكات الحاسوب - مهارات الحاسوب
الوحدة السادسة - شبكات الحاسوب - مهارات الحاسوبEyad Almasri
 
الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA
الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA
الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA Eyad Almasri
 
الوحدة الخامسة - كيفية تحضير عرض البوربوينت
الوحدة الخامسة - كيفية تحضير عرض البوربوينتالوحدة الخامسة - كيفية تحضير عرض البوربوينت
الوحدة الخامسة - كيفية تحضير عرض البوربوينتEyad Almasri
 
الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...
الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...
الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...Eyad Almasri
 
الوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوب
الوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوبالوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوب
الوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوبEyad Almasri
 
أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018
أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018
أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018Eyad Almasri
 
أنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينار
أنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينارأنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينار
أنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينارEyad Almasri
 
مكونات الحاسوب
مكونات الحاسوبمكونات الحاسوب
مكونات الحاسوبEyad Almasri
 

Mehr von Eyad Almasri (18)

Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...
Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...
Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...
 
Chapter 8 / Electronic Payment
Chapter 8 / Electronic  PaymentChapter 8 / Electronic  Payment
Chapter 8 / Electronic Payment
 
Chapter 7/Social Computing
Chapter 7/Social ComputingChapter 7/Social Computing
Chapter 7/Social Computing
 
Chapter 6/Mobile Commerce and Ubiquitous Computing Technology of E-Business
Chapter 6/Mobile Commerce  and Ubiquitous Computing Technology of E-BusinessChapter 6/Mobile Commerce  and Ubiquitous Computing Technology of E-Business
Chapter 6/Mobile Commerce and Ubiquitous Computing Technology of E-Business
 
Chapter 5/Innovative EC Systems: From E-Government to E-Learning, Collaborat...
Chapter 5/Innovative EC Systems: From E-Government to  E-Learning, Collaborat...Chapter 5/Innovative EC Systems: From E-Government to  E-Learning, Collaborat...
Chapter 5/Innovative EC Systems: From E-Government to E-Learning, Collaborat...
 
Chapter 4/B2B E-Commerce – Technology of E-Business
Chapter 4/B2B E-Commerce  – Technology of E-BusinessChapter 4/B2B E-Commerce  – Technology of E-Business
Chapter 4/B2B E-Commerce – Technology of E-Business
 
Chapter 3/Retailing In Electronic Commerce: Products and Services Technology...
Chapter 3/Retailing In Electronic Commerce:  Products and Services Technology...Chapter 3/Retailing In Electronic Commerce:  Products and Services Technology...
Chapter 3/Retailing In Electronic Commerce: Products and Services Technology...
 
Chapter 1/ Overview of Electronic Commerce Technology of E-Business
Chapter 1/ Overview of Electronic Commerce Technology of E-BusinessChapter 1/ Overview of Electronic Commerce Technology of E-Business
Chapter 1/ Overview of Electronic Commerce Technology of E-Business
 
الوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوب
الوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوبالوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوب
الوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوب
 
الوحدة السابعة - شبكة الأنترنت - مهارات الحاسوب
الوحدة السابعة - شبكة الأنترنت - مهارات الحاسوبالوحدة السابعة - شبكة الأنترنت - مهارات الحاسوب
الوحدة السابعة - شبكة الأنترنت - مهارات الحاسوب
 
الوحدة السادسة - شبكات الحاسوب - مهارات الحاسوب
الوحدة السادسة - شبكات الحاسوب - مهارات الحاسوبالوحدة السادسة - شبكات الحاسوب - مهارات الحاسوب
الوحدة السادسة - شبكات الحاسوب - مهارات الحاسوب
 
الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA
الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA
الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA
 
الوحدة الخامسة - كيفية تحضير عرض البوربوينت
الوحدة الخامسة - كيفية تحضير عرض البوربوينتالوحدة الخامسة - كيفية تحضير عرض البوربوينت
الوحدة الخامسة - كيفية تحضير عرض البوربوينت
 
الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...
الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...
الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...
 
الوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوب
الوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوبالوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوب
الوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوب
 
أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018
أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018
أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018
 
أنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينار
أنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينارأنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينار
أنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينار
 
مكونات الحاسوب
مكونات الحاسوبمكونات الحاسوب
مكونات الحاسوب
 

Kürzlich hochgeladen

Leading Mobile App Development Companies in India (2).pdf
Leading Mobile App Development Companies in India (2).pdfLeading Mobile App Development Companies in India (2).pdf
Leading Mobile App Development Companies in India (2).pdfCWS Technology
 
Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...
Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...
Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...nishasame66
 
Mobile Application Development-Android and It’s Tools
Mobile Application Development-Android and It’s ToolsMobile Application Development-Android and It’s Tools
Mobile Application Development-Android and It’s ToolsChandrakantDivate1
 
Mobile Application Development-Components and Layouts
Mobile Application Development-Components and LayoutsMobile Application Development-Components and Layouts
Mobile Application Development-Components and LayoutsChandrakantDivate1
 
Android Application Components with Implementation & Examples
Android Application Components with Implementation & ExamplesAndroid Application Components with Implementation & Examples
Android Application Components with Implementation & ExamplesChandrakantDivate1
 

Kürzlich hochgeladen (6)

Leading Mobile App Development Companies in India (2).pdf
Leading Mobile App Development Companies in India (2).pdfLeading Mobile App Development Companies in India (2).pdf
Leading Mobile App Development Companies in India (2).pdf
 
Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...
Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...
Satara Call girl escort *74796//13122* Call me punam call girls 24*7hour avai...
 
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
Obat Penggugur Kandungan Di Apotik Kimia Farma (087776558899)
 
Mobile Application Development-Android and It’s Tools
Mobile Application Development-Android and It’s ToolsMobile Application Development-Android and It’s Tools
Mobile Application Development-Android and It’s Tools
 
Mobile Application Development-Components and Layouts
Mobile Application Development-Components and LayoutsMobile Application Development-Components and Layouts
Mobile Application Development-Components and Layouts
 
Android Application Components with Implementation & Examples
Android Application Components with Implementation & ExamplesAndroid Application Components with Implementation & Examples
Android Application Components with Implementation & Examples
 

Lec004 setting up for development

  • 1. Lecture 4: Setting Up for Development Eyad M. Almassri 1
  • 2. Overview • Learn how to set up our Android development environment • Look at many of the tools provided with the Android SDK • Review the Android SDK License Agreement • Learn about many important SDK packages • Look at the sample applications available with the SDK 2
  • 3. Configuring Your Development Environment • Android SDK compatible with Windows, Macintosh, or Linux systems • Installation requirements for using this book: – Java Development Kit (JDK), Version 13 • http://www.oracle.com/technetwork/java/java se/downloads/index.html – Android Studio (includes the Android SDK) • http://d.android.com/sdk/index.html 3
  • 4. Included with Android Studio • Android Studio – SDK tools – Platform tools – The latest Android platform – The latest Android system image for the emulator 4
  • 5. Basic Installation Process 1. Download and install the appropriate JDK. 2. Download and install or unzip the appropriate Android Studio package for your Operating System. 3. Launch Android Studio and use the Android SDK Manager to download and install specific Android platform versions and other components. 4. Install appropriate USB drivers for device debugging, if necessary. 5. Configure your device(s) for debugging. 6. Start developing.5
  • 7. Upgrading Android Studio and the Android SDK • To stay up-to-date with the latest advancements: – Upgrade from time to time • Updates include: – New, updated, or removed features – Package name changes – Updated tools – Essential documents • Overview of Changes • API Diff Report • Release Notes – See http://d.android.com/sdk/installing/adding- packages.html7
  • 8. Exploring the Android SDK • Android SDK major components: – Android SDK Platform by version – Platform tools – SDK Build Tools – System images – Google APIs – Sources for Android SDK – Extras – Sample applications 8
  • 9. The Android SDK License Agreement • Before downloading the SDK, you must agree to the Android SDK License Agreement. – This agreement is between you and Google. – Make sure that you understand this license even if someone else has accepted the agreement on your behalf! 9
  • 10. Popular Third-Party Android APIs • Available outside the core Android SDK • Installed separately • Some are from Google, others from device manufacturers and other providers 10
  • 11. Popular Third-Party Android APIs (Cont’d) • Android Support Library • Google Mobile Ads SDK (com.google.android.gms.ads.*) • Google Analytics SDK for Android (com.google.android.gms.analytics.*)  Android Cloud Messaging for Android (GCM) (com.google.android.gms.gcm)  Google App Indexing (com.google.android.gms.appindexing) • Google App Invites (com.google.android.gms.appinvite) • Google Play Game Services (com.google.android.gms.games) • Google Fit (com.google.android.gms.fitness) 11
  • 12. Exploring the Core Android Tools • Android Studio – Where you spend most of your time developing your apps – Provides wizards for creating, debugging, and deploying Android apps – Several buttons available on the toolbar for performing helpful actions 12
  • 13. Android Studio • Launch the Android Virtual Device Manager • Launch the Android SDK Manager • Launch the Android Device Monitor 13
  • 15. Android SDK and AVD Managers • The first Android toolbar icon launches the Android Virtual Device Manager. • The second Android toolbar icon launches the Android SDK Manager. 15
  • 16. Android SDK and AVD Managers (Cont’d) 16
  • 17. Android SDK and AVD Managers (Cont’d) 17
  • 18. Android SDK and AVD Managers (Cont’d) 18
  • 19. Android Emulator • Helpful tool used for designing and developing Android applications • Runs on your computer • Behaves like a real device • Load Android applications into the emulator to test and debug them • Generic device, not tied to any one specific configuration • Valuable, but should not be used as a replacement for testing on actual target devices 19

Hinweis der Redaktion

  1. When installing Android Studio, make sure to select all the available components for your system setup, as seen on the Choose Components dialog of the Android Studio Setup wizard as seen here. The last component, Performance (Intel® HAXM), may not be available on your device for installation, but don’t worry if that particular component is not available. Make sure the Android SDK and the Android Virtual Device are selected for installation.
  2. Essential documents An Overview of Changes: A brief description of the major changes to the SDK An API Diff Report: A complete list of specific changes to the SDK Release Notes: A list of known issues with the SDK
  3. Android Support Library Adds several components available in recent SDKs to legacy versions of the SDKs. For example, the Various Loader APIs and Fragment APIs introduced in API Level 11 can be used, in compatibility form, as far back as API Level 4 using this add-on. Google Mobile Ads SDK Allows developers to insert Google Mobile Ads to monetize their applications. This SDK requires agreement to additional Terms of Service and registration for an account. Google Analytics SDK for Android Allows developers to collect and analyze information about how their Android applications are used with the popular Google Analytics service. This SDK requires agreement to additional Terms of Service and registration for an account. Android Cloud Messaging for Android (GCM) Provides access to a service for developers to push data from the network to their applications installed on devices. This SDK requires agreement to additional Terms of Service and registration for an account. Google App Indexing This SDK helps you prepare your application for indexing in Google Search so that your application may be found by users through searching. Google App Invites This SDK allows you to integrate app invite functionality so that your users may invite their Google contacts using SMS and email. Google Play Game Services Provides achievement, leaderboard, and multiplayer functionality to your games. This SDK requires agreement to additional Terms of Service and registration for an account. Google Fit Allows users to integrate fitness tracking functionality in their applications. This SDK requires agreement to additional Terms of Service and registration for an account.
  4. Here is a screenshot showing the Android features present in the Android Studio toolbar.
  5. Android Virtual Device Manager The Android Virtual Device Manager organizes and provides tools to create and edit AVDs. To manage applications in the Android emulator, you must configure different AVD profiles. Each AVD profile describes what type of device you want the emulator to simulate, including which Android platform to support as well what the device specifications should be. You can specify different screen sizes and orientations, and you can specify whether the emulator has an SD card and, if so, what its capacity is, among many other device configuration settings. Android SDK Manager The Android SDK Manager facilitates Android development across multiple platform versions simultaneously. When a new Android SDK is released, you can use this tool to download and update your tools while still maintaining backward compatibility and use older versions of the Android SDK.
  6. This is the Android Virtual Device Manager.
  7. The built-in Android SDK Manager shows the currently installed Android SDK Platforms (top) and SDK Tools (bottom).
  8. This is the stand-alone Android SDK Manager.
  9. This is the Android emulator (Nexus 5 smartphone-style, Android API 22 AVD configuration).
  10. This is the Android emulator (Nexus 9 tablet-style, Android API 22 AVD configuration).