SlideShare une entreprise Scribd logo
1  sur  29
2

http://www.tops-int.com/live-project-training-android.html

1
5. Android Device emulator and Android Virtual Devices
5.1. Android Device emulator and Android Virtual Devices
5.2. Google vs. Android AVD
5.3. Android devices emulator Shortcuts

6. Exercise: Create and Start Android Virtual Devices
6.1. Target
6.2. Create AVD
6.3. Start Your AVD
http://www.tops-int.com/live-project-training-android.html

2
7. Conventions and API Level
7.1. API Version
7.2. Android project and package name

8. Exercise: Use the Android project Wizard
8.1. Android Project Wizard
8.2. Create Android Project

9. Exercise: Start the generated Android Application
9.1. Start AVD
9.2. Start Application

http://www.tops-int.com/live-project-training-android.html

3
10. Android Developer Tools
10.1. DDMS – Dalvik Debug Monitor Service
10.2. Emulator Control
10.3. File explorer

http://www.tops-int.com/live-project-training-android.html

4
5.1. Android emulator and Android Virtual Device
• The Android SDK contains an Android device emulator. This emulator can
be used to run an Android virtual device (AVD). AVDs allow you to test
your Android applications on different Android versions and
configurations without access to the real hardware.
• During the creation of your AVD you define the configuration for the
virtual device. This includes, for example, the resolution, the Android API
version and the density.

• You can define multiple AVDs with different configurations and start
them in parallel. This allows you to test different device configurations.
http://www.tops-int.com/live-project-training-android.html

5
5.2. Google vs. Android AVD
• During the creation of an AVD you decide if you want to create an
Android device or a Google device.

• An AVD created for Android contains the programs from the Android
Open Source Project. An AVD created for the Google API's contains
additional Google specific code.
• AVDs created with the Google API allow you to test applications which
use Google Play services, e.g., the new Google maps API or the new
location services.

http://www.tops-int.com/live-project-training-android.html

6
5.3. Android device emulator shortcuts
The following table lists useful shortcuts for working with an AVD.

Table 1. Android device emulator shortcuts
Shortcut

Description

Alt+Enter

Maximizes the emulator.

Ctrl+F11

Changes the orientation of the emulator from landscape to
portrait and vice versa.

F8

Turns the network on and off.

http://www.tops-int.com/live-project-training-android.html

7
6.Create and start Android Virtual Device
6.1. Target
In this exercise you create and start an AVD. Even if you have a real
Android device available, you should get familiar with the creation and
usage of AVDs. Virtual devices give you the possibility to test your
application for selected Android versions and a specific configuration.

6.2. Create AVD
Define a new Android Virtual Device (AVD) by opening the AVD
Manager via Window → Android Virtual Device Manager and by pressing
the New button.

http://www.tops-int.com/live-project-training-android.html

8
http://www.tops-int.com/live-project-training-android.html

9
Enter values similar to the
following screenshot :
Afterwards press the OK button.
This will create the AVD
configuration and display
it under the list of available
virtual devices.

http://www.tops-int.com/live-project-training-android.html

10
6.3. Start your AVD
Select your new entry and press the Start button. Select Launch in the
following dialog.

http://www.tops-int.com/live-project-training-android.html

11
7. Conventions and API level
7.1. API version
The tutorials of this document have been developed and tested with
Android 4.3, API Level 18. Please use this version for all tutorials in this
tutorial. Higher versions of the API level should also work. A lower
version of the Android API might also work, but if you face issues, try the
recommended version.

7.2. Android project and package name
The base package for the projects is always the same as the project
name, e.g., if you are asked to create a project
called com.vogella.android, then the corresponding package name
is com.vogella.android.
http://www.tops-int.com/live-project-training-android.html

12
8. Exercise: Use the Android project wizard
8.1. Android project wizard
The Android Developer Tools provide wizards for creating Android
applications. In this exercise you use one of the wizards to create an
Android application.

8.2. Create Android project
To create a new Android project
select File → New → Other... → Android → Android Project from the
menu.

http://www.tops-int.com/live-project-training-android.html

13
Press e Next button
and ensure that
you have enabled
the
checkboxes Create
a launcher icon and
Create activity.
On the wizard
page for the
launcher
icon, create an
application icon of
your choosing.
The following
screenshot shows
an example for a
possible result.

http://www.tops-int.com/live-project-training-android.html

15
Press the Next button and select the BlankActivity template. Press the Next button to
proceed.
http://www.tops-int.com/live-project-training-android.html

17
Enter the following data in the dialog for the BlankActivity template. The
selection is depicted in the screenshot after the table.

Table 3. Values for the template
Parameter

Value

Activity

MainActivity

Layout

activity_main

Navigation Type

none

http://www.tops-int.com/live-project-training-android.html

18
Press
the Finish button.
The wizard may
prompt you to
install the
support library. If
so, select to install
it.

http://www.tops-int.com/live-project-training-android.html

19
http://www.tops-int.com/live-project-training-android.html

20
9. Exercise: Start the generated Android application

9.1. Start AVD
If you have not yet done so, create and
start an Android virtual device (AVD)
fitting for your selected API version.

(Once you AVD is ready, unlock your emulator.)

21
To build, install and run your application
the Android application on the Android
emulator, select your project, right click
on it, and select Run-As → Android
Application.

22
You may be prompted if the Android Developer Tools should monitor
messages. Select Yes in this case and press theOK button.

This starts your application on the AVD. The started application is a
simple Hello, world. application.

http://www.tops-int.com/live-project-training-android.html

23
10. Android Developer Tools
10.1. DDMS - Dalvik Debug Monitor Service
• Eclipse provides a perspective for interacting with your Android (virtual)
device and your Android application program. Select Window → Open
Perspective → Other... → DDMS to open this perspective. It groups
several Eclipse views which can also be used independently.
• On the left side it shows you the connected Android devices and the
running processes on the device. The right side is a stack of views with
different purposes. You can select processes and trigger actions from the
toolbar, e.g., start a trace or stop the process.
The following description highlights a few views in this perspective.
Others are described once they are needed.

24
10.2. Emulator Control
The Emulator Control view allows you to simulate phone calls and SMS on
the AVD.
• It also allows
the application
to set the current
geo position.
10.3. File explorer
The file explorer allows you to browse the file system on your Android
virtual device.

http://www.tops-int.com/live-project-training-android.html

27
http://www.tops-int.com/live-project-training-android.html

17
http://www.tops-int.com/live-project-training-android.html

29

Contenu connexe

Tendances

Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studioParinita03
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)Ahsanul Karim
 
Developing Android Apps
Developing Android AppsDeveloping Android Apps
Developing Android AppsClaire Lee
 
Android the first app - hello world - copy
Android   the first app - hello world - copyAndroid   the first app - hello world - copy
Android the first app - hello world - copyDeepa Rani
 
Android Development Tools and Installation
Android Development Tools and InstallationAndroid Development Tools and Installation
Android Development Tools and InstallationProf. Erwin Globio
 
Langkah-langkah Instalasi software untuk develop aplikasi android
Langkah-langkah Instalasi software untuk develop aplikasi androidLangkah-langkah Instalasi software untuk develop aplikasi android
Langkah-langkah Instalasi software untuk develop aplikasi androidAgus Haryanto
 
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.
 
Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Daniel Knott
 
Utilizando Espresso e UIAutomator no Teste de Apps Android
Utilizando Espresso e UIAutomator no Teste de Apps AndroidUtilizando Espresso e UIAutomator no Teste de Apps Android
Utilizando Espresso e UIAutomator no Teste de Apps AndroidEduardo Carrara de Araujo
 
MPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_DocumentationMPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_DocumentationXin Shao
 
21 android2 updated
21 android2 updated21 android2 updated
21 android2 updatedGhanaGTUG
 
Introduction To Android For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.Sandeep Londhe
 

Tendances (20)

Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)
 
Developing Android Apps
Developing Android AppsDeveloping Android Apps
Developing Android Apps
 
Android course (lecture2)
Android course (lecture2)Android course (lecture2)
Android course (lecture2)
 
Android the first app - hello world - copy
Android   the first app - hello world - copyAndroid   the first app - hello world - copy
Android the first app - hello world - copy
 
Android Development Tools and Installation
Android Development Tools and InstallationAndroid Development Tools and Installation
Android Development Tools and Installation
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installation
 
Android Test Automation Workshop
Android Test Automation WorkshopAndroid Test Automation Workshop
Android Test Automation Workshop
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Android
AndroidAndroid
Android
 
Langkah-langkah Instalasi software untuk develop aplikasi android
Langkah-langkah Instalasi software untuk develop aplikasi androidLangkah-langkah Instalasi software untuk develop aplikasi android
Langkah-langkah Instalasi software untuk develop aplikasi android
 
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...
 
Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012Mobile App Testing ScanAgile 2012
Mobile App Testing ScanAgile 2012
 
Synapseindia android apps application
Synapseindia android apps applicationSynapseindia android apps application
Synapseindia android apps application
 
Utilizando Espresso e UIAutomator no Teste de Apps Android
Utilizando Espresso e UIAutomator no Teste de Apps AndroidUtilizando Espresso e UIAutomator no Teste de Apps Android
Utilizando Espresso e UIAutomator no Teste de Apps Android
 
MPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_DocumentationMPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_Documentation
 
UIAutomator
UIAutomatorUIAutomator
UIAutomator
 
21 android2 updated
21 android2 updated21 android2 updated
21 android2 updated
 
Introduction To Android For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.
 
Training android
Training androidTraining android
Training android
 

Similaire à How to create android applications

Android deep dive
Android deep diveAndroid deep dive
Android deep diveAnuSahniNCI
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdfRebaMaheen
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdfRebaMaheen
 
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021Svetlin Nakov
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appiumPratik Patel
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studioAbdul Basit
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxlancelotlaytan1996
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answerskavinilavuG
 
Mobile Applicaiton Development Unit 2.pptx
Mobile Applicaiton Development Unit 2.pptxMobile Applicaiton Development Unit 2.pptx
Mobile Applicaiton Development Unit 2.pptxnihitagrawal4
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android developmentGhufran Hashmi
 
Android Wear Code Lab
Android Wear Code LabAndroid Wear Code Lab
Android Wear Code LabGerard
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application DevelopmentArief Gunawan
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android ApplicationArcadian Learning
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptxSundaresanB5
 

Similaire à How to create android applications (20)

Android deep dive
Android deep diveAndroid deep dive
Android deep dive
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
 
Android Stsucture
Android StsuctureAndroid Stsucture
Android Stsucture
 
Notes Unit2.pptx
Notes Unit2.pptxNotes Unit2.pptx
Notes Unit2.pptx
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
Android
AndroidAndroid
Android
 
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
Appium Mobile Testing - Nakov at js.talks() Conference - Nov 2021
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appium
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptx
 
Android interview questions and answers
Android interview questions and answersAndroid interview questions and answers
Android interview questions and answers
 
Mobile Applicaiton Development Unit 2.pptx
Mobile Applicaiton Development Unit 2.pptxMobile Applicaiton Development Unit 2.pptx
Mobile Applicaiton Development Unit 2.pptx
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android development
 
Android Wear Code Lab
Android Wear Code LabAndroid Wear Code Lab
Android Wear Code Lab
 
Android Development
Android DevelopmentAndroid Development
Android Development
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application Development
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 

Plus de TOPS Technologies

Learn java objects inheritance-overriding-polymorphism
Learn java objects  inheritance-overriding-polymorphismLearn java objects  inheritance-overriding-polymorphism
Learn java objects inheritance-overriding-polymorphismTOPS Technologies
 
Surat tops conducted one hour seminar on “corporate basic skills”
Surat tops conducted  one hour seminar on “corporate basic skills”Surat tops conducted  one hour seminar on “corporate basic skills”
Surat tops conducted one hour seminar on “corporate basic skills”TOPS Technologies
 
Word press interview question and answer tops technologies
Word press interview question and answer   tops technologiesWord press interview question and answer   tops technologies
Word press interview question and answer tops technologiesTOPS Technologies
 
Software testing and quality assurance
Software testing and quality assuranceSoftware testing and quality assurance
Software testing and quality assuranceTOPS Technologies
 
Learn advanced java programming
Learn advanced java programmingLearn advanced java programming
Learn advanced java programmingTOPS Technologies
 
What is ui element in i phone developmetn
What is ui element in i phone developmetnWhat is ui element in i phone developmetn
What is ui element in i phone developmetnTOPS Technologies
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applicationsTOPS Technologies
 
Software testing live project training
Software testing live project trainingSoftware testing live project training
Software testing live project trainingTOPS Technologies
 
Web designing live project training
Web designing live project trainingWeb designing live project training
Web designing live project trainingTOPS Technologies
 
iPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologiesiPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologiesTOPS Technologies
 
08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phone08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phoneTOPS Technologies
 
GTU PHP Project Training Guidelines
GTU PHP Project Training GuidelinesGTU PHP Project Training Guidelines
GTU PHP Project Training GuidelinesTOPS Technologies
 
GTU Asp.net Project Training Guidelines
GTU Asp.net Project Training GuidelinesGTU Asp.net Project Training Guidelines
GTU Asp.net Project Training GuidelinesTOPS Technologies
 
GTU Guidelines for Project on JAVA
GTU Guidelines for Project on JAVAGTU Guidelines for Project on JAVA
GTU Guidelines for Project on JAVATOPS Technologies
 

Plus de TOPS Technologies (20)

Learn java objects inheritance-overriding-polymorphism
Learn java objects  inheritance-overriding-polymorphismLearn java objects  inheritance-overriding-polymorphism
Learn java objects inheritance-overriding-polymorphism
 
Surat tops conducted one hour seminar on “corporate basic skills”
Surat tops conducted  one hour seminar on “corporate basic skills”Surat tops conducted  one hour seminar on “corporate basic skills”
Surat tops conducted one hour seminar on “corporate basic skills”
 
Word press interview question and answer tops technologies
Word press interview question and answer   tops technologiesWord press interview question and answer   tops technologies
Word press interview question and answer tops technologies
 
How to install android sdk
How to install android sdkHow to install android sdk
How to install android sdk
 
Software testing and quality assurance
Software testing and quality assuranceSoftware testing and quality assurance
Software testing and quality assurance
 
Basics in software testing
Basics in software testingBasics in software testing
Basics in software testing
 
Learn advanced java programming
Learn advanced java programmingLearn advanced java programming
Learn advanced java programming
 
What is ui element in i phone developmetn
What is ui element in i phone developmetnWhat is ui element in i phone developmetn
What is ui element in i phone developmetn
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
Java live project training
Java live project trainingJava live project training
Java live project training
 
Software testing live project training
Software testing live project trainingSoftware testing live project training
Software testing live project training
 
Web designing live project training
Web designing live project trainingWeb designing live project training
Web designing live project training
 
Php live project training
Php live project trainingPhp live project training
Php live project training
 
iPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologiesiPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologies
 
Php training in ahmedabad
Php training in ahmedabadPhp training in ahmedabad
Php training in ahmedabad
 
Java training in ahmedabad
Java training in ahmedabadJava training in ahmedabad
Java training in ahmedabad
 
08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phone08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phone
 
GTU PHP Project Training Guidelines
GTU PHP Project Training GuidelinesGTU PHP Project Training Guidelines
GTU PHP Project Training Guidelines
 
GTU Asp.net Project Training Guidelines
GTU Asp.net Project Training GuidelinesGTU Asp.net Project Training Guidelines
GTU Asp.net Project Training Guidelines
 
GTU Guidelines for Project on JAVA
GTU Guidelines for Project on JAVAGTU Guidelines for Project on JAVA
GTU Guidelines for Project on JAVA
 

Dernier

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 

Dernier (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

How to create android applications

  • 2. 5. Android Device emulator and Android Virtual Devices 5.1. Android Device emulator and Android Virtual Devices 5.2. Google vs. Android AVD 5.3. Android devices emulator Shortcuts 6. Exercise: Create and Start Android Virtual Devices 6.1. Target 6.2. Create AVD 6.3. Start Your AVD http://www.tops-int.com/live-project-training-android.html 2
  • 3. 7. Conventions and API Level 7.1. API Version 7.2. Android project and package name 8. Exercise: Use the Android project Wizard 8.1. Android Project Wizard 8.2. Create Android Project 9. Exercise: Start the generated Android Application 9.1. Start AVD 9.2. Start Application http://www.tops-int.com/live-project-training-android.html 3
  • 4. 10. Android Developer Tools 10.1. DDMS – Dalvik Debug Monitor Service 10.2. Emulator Control 10.3. File explorer http://www.tops-int.com/live-project-training-android.html 4
  • 5. 5.1. Android emulator and Android Virtual Device • The Android SDK contains an Android device emulator. This emulator can be used to run an Android virtual device (AVD). AVDs allow you to test your Android applications on different Android versions and configurations without access to the real hardware. • During the creation of your AVD you define the configuration for the virtual device. This includes, for example, the resolution, the Android API version and the density. • You can define multiple AVDs with different configurations and start them in parallel. This allows you to test different device configurations. http://www.tops-int.com/live-project-training-android.html 5
  • 6. 5.2. Google vs. Android AVD • During the creation of an AVD you decide if you want to create an Android device or a Google device. • An AVD created for Android contains the programs from the Android Open Source Project. An AVD created for the Google API's contains additional Google specific code. • AVDs created with the Google API allow you to test applications which use Google Play services, e.g., the new Google maps API or the new location services. http://www.tops-int.com/live-project-training-android.html 6
  • 7. 5.3. Android device emulator shortcuts The following table lists useful shortcuts for working with an AVD. Table 1. Android device emulator shortcuts Shortcut Description Alt+Enter Maximizes the emulator. Ctrl+F11 Changes the orientation of the emulator from landscape to portrait and vice versa. F8 Turns the network on and off. http://www.tops-int.com/live-project-training-android.html 7
  • 8. 6.Create and start Android Virtual Device 6.1. Target In this exercise you create and start an AVD. Even if you have a real Android device available, you should get familiar with the creation and usage of AVDs. Virtual devices give you the possibility to test your application for selected Android versions and a specific configuration. 6.2. Create AVD Define a new Android Virtual Device (AVD) by opening the AVD Manager via Window → Android Virtual Device Manager and by pressing the New button. http://www.tops-int.com/live-project-training-android.html 8
  • 10. Enter values similar to the following screenshot : Afterwards press the OK button. This will create the AVD configuration and display it under the list of available virtual devices. http://www.tops-int.com/live-project-training-android.html 10
  • 11. 6.3. Start your AVD Select your new entry and press the Start button. Select Launch in the following dialog. http://www.tops-int.com/live-project-training-android.html 11
  • 12. 7. Conventions and API level 7.1. API version The tutorials of this document have been developed and tested with Android 4.3, API Level 18. Please use this version for all tutorials in this tutorial. Higher versions of the API level should also work. A lower version of the Android API might also work, but if you face issues, try the recommended version. 7.2. Android project and package name The base package for the projects is always the same as the project name, e.g., if you are asked to create a project called com.vogella.android, then the corresponding package name is com.vogella.android. http://www.tops-int.com/live-project-training-android.html 12
  • 13. 8. Exercise: Use the Android project wizard 8.1. Android project wizard The Android Developer Tools provide wizards for creating Android applications. In this exercise you use one of the wizards to create an Android application. 8.2. Create Android project To create a new Android project select File → New → Other... → Android → Android Project from the menu. http://www.tops-int.com/live-project-training-android.html 13
  • 14. Press e Next button and ensure that you have enabled the checkboxes Create a launcher icon and Create activity.
  • 15. On the wizard page for the launcher icon, create an application icon of your choosing. The following screenshot shows an example for a possible result. http://www.tops-int.com/live-project-training-android.html 15
  • 16. Press the Next button and select the BlankActivity template. Press the Next button to proceed.
  • 18. Enter the following data in the dialog for the BlankActivity template. The selection is depicted in the screenshot after the table. Table 3. Values for the template Parameter Value Activity MainActivity Layout activity_main Navigation Type none http://www.tops-int.com/live-project-training-android.html 18
  • 19. Press the Finish button. The wizard may prompt you to install the support library. If so, select to install it. http://www.tops-int.com/live-project-training-android.html 19
  • 21. 9. Exercise: Start the generated Android application 9.1. Start AVD If you have not yet done so, create and start an Android virtual device (AVD) fitting for your selected API version. (Once you AVD is ready, unlock your emulator.) 21
  • 22. To build, install and run your application the Android application on the Android emulator, select your project, right click on it, and select Run-As → Android Application. 22
  • 23. You may be prompted if the Android Developer Tools should monitor messages. Select Yes in this case and press theOK button. This starts your application on the AVD. The started application is a simple Hello, world. application. http://www.tops-int.com/live-project-training-android.html 23
  • 24. 10. Android Developer Tools 10.1. DDMS - Dalvik Debug Monitor Service • Eclipse provides a perspective for interacting with your Android (virtual) device and your Android application program. Select Window → Open Perspective → Other... → DDMS to open this perspective. It groups several Eclipse views which can also be used independently. • On the left side it shows you the connected Android devices and the running processes on the device. The right side is a stack of views with different purposes. You can select processes and trigger actions from the toolbar, e.g., start a trace or stop the process. The following description highlights a few views in this perspective. Others are described once they are needed. 24
  • 25.
  • 26. 10.2. Emulator Control The Emulator Control view allows you to simulate phone calls and SMS on the AVD. • It also allows the application to set the current geo position.
  • 27. 10.3. File explorer The file explorer allows you to browse the file system on your Android virtual device. http://www.tops-int.com/live-project-training-android.html 27