SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)
Ahsanul Karim
 
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
Deepa Rani
 
MPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_DocumentationMPointInc_AndroidSDK_Documentation
MPointInc_AndroidSDK_Documentation
Xin Shao
 

Mais procurados (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
 

Semelhante a How to create android applications

03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application Development
Arief Gunawan
 

Semelhante a 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
 

Mais de TOPS Technologies

Web designing live project training
Web designing live project trainingWeb designing live project training
Web designing live project training
TOPS 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 phone
TOPS Technologies
 

Mais 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
 

Último

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
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...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

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