SlideShare a Scribd company logo
Getting started   Running an application   Managing apps      Debugging apps       Designing layouts with XML




                                             CS/SE Individual Practical


                                                           Stephen Gilmore
                                                           October 7, 2011
                                                       School of Informatics




                                                                               CS/SE Individual Practical
                                                                                                            1 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Getting started


                  Creating a new Android project




                                                                            CS/SE Individual Practical
                                                                                                         2 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Getting started


                  Naming your project




                                                                            CS/SE Individual Practical
                                                                                                         3 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Getting started


                  Specifying the platform




                                                                            CS/SE Individual Practical
                                                                                                         4 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Getting started


                  Looking at samples




                                                                            CS/SE Individual Practical
                                                                                                         5 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Getting started


                  A project is created




                                                                            CS/SE Individual Practical
                                                                                                         6 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Running an application


                  Configuring an Android application




                                                                            CS/SE Individual Practical
                                                                                                         7 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Running an application


                  Run configurations




                                                                            CS/SE Individual Practical
                                                                                                         8 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Running an application


                  Setting the DNS server




                                                                            CS/SE Individual Practical
                                                                                                         9 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Running an application


                  Running an Android application




                                                                            CS/SE Individual Practical
                                                                                                         10 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Running an application


                  Starting the activity on the emulator




                                                                            CS/SE Individual Practical
                                                                                                         11 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Running an application


                      The emulator running




.08.15.png
                                                                                CS/SE Individual Practical
                                                                                                             12 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Running an application


                      Searching the dictionary




.08.24.png
                                                                                CS/SE Individual Practical
                                                                                                             13 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Running an application


                      Autocompletion is used




.08.37.png
                                                                                CS/SE Individual Practical
                                                                                                             14 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Running an application


                      The application in the launchpad




.09.09.png
                                                                                CS/SE Individual Practical
                                                                                                             15 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Managing apps


                      Managing apps on the phone




.09.24.png
                                                                                CS/SE Individual Practical
                                                                                                             16 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Managing apps


                      Selecting an app for deletion




.09.50.png
                                                                                CS/SE Individual Practical
                                                                                                             17 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Managing apps


                      Forcing apps to stop




.10.05.png
                                                                                CS/SE Individual Practical
                                                                                                             18 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Managing apps


                      Forcing apps to stop




.10.12.png
                                                                                CS/SE Individual Practical
                                                                                                             19 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Managing apps


                      Uninstalling an app




.10.16.png
                                                                                CS/SE Individual Practical
                                                                                                             20 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Managing apps


                      Uninstalling an app




.10.23.png
                                                                                CS/SE Individual Practical
                                                                                                             21 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Managing apps


                      Uninstalling an app




.10.27.png
                                                                                CS/SE Individual Practical
                                                                                                             22 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Debugging apps


                  Seeding a NullPointerException (NPE)




                                                                            CS/SE Individual Practical
                                                                                                         23 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Debugging apps


                  Try to run the application




                                                                            CS/SE Individual Practical
                                                                                                         24 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Debugging apps


                      User view of a NullPointerException




.11.54.png
                                                                                CS/SE Individual Practical
                                                                                                             25 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Debugging apps


                  Change the Eclipse perspective




                                                                            CS/SE Individual Practical
                                                                                                         26 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Debugging apps


                  Dalvik Debug and Monitor Service




                                                                            CS/SE Individual Practical
                                                                                                         27 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Debugging apps


                      DDMS perspective with LogCat




.58.21.png
                                                                                CS/SE Individual Practical
                                                                                                             28 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Debugging apps


                  Developer view of a NPE




                                                                            CS/SE Individual Practical
                                                                                                         29 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Debugging apps


                  Tracking the error back to the code




                                                                            CS/SE Individual Practical
                                                                                                         30 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Debugging apps


                  Error found, warning visible




                                                                            CS/SE Individual Practical
                                                                                                         31 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Debugging apps


                  Bug removed, Java Problem disappears




                                                                            CS/SE Individual Practical
                                                                                                         32 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  Graphical view of XML in editor




                                                                            CS/SE Individual Practical
                                                                                                         33 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  Source code view of XML in editor




                                                                            CS/SE Individual Practical
                                                                                                         34 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  Outline view of XML in editor




                                                                            CS/SE Individual Practical
                                                                                                         35 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  The editor (and themes)




                                                                            CS/SE Individual Practical
                                                                                                         36 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  Changing the theme (Holo light)




                                                                            CS/SE Individual Practical
                                                                                                         37 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  Changing the theme (Theme Light)




                                                                            CS/SE Individual Practical
                                                                                                         38 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  Adding widgets with drag and drop




                                                                            CS/SE Individual Practical
                                                                                                         39 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  The graphical layout is updated




                                                                            CS/SE Individual Practical
                                                                                                         40 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  XML source automatically updated too




                                                                            CS/SE Individual Practical
                                                                                                         41 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                  Designing layouts with XML


                  Undo changes in the editor




                                                                            CS/SE Individual Practical
                                                                                                         42 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Designing layouts with XML


                      Errors in XML code




                                                                                CS/SE Individual Practical
.59.11.png                                                                                                   43 / 44
Getting started   Running an application   Managing apps   Debugging apps       Designing layouts with XML
                      Designing layouts with XML


                      Errors in XML can be subtle




                                                                                CS/SE Individual Practical
.59.44.png                                                                                                   44 / 44

More Related Content

PPSX
Web development concepts using microsoft technologies
PPT
Zero redeployment with JRebel
PDF
Eclipse Summit 2009 - Aspect Oriented Modeling
PPTX
End-To-End Visual Studio Application Lifecycle Management
PDF
Viliam Elischer - Ember.js - Jak zatopit a neshořet!
PDF
Part 1 workbench basics
PDF
Ember.js - Jak zatopit a neshořet!
PPT
10 interesting things about java
Web development concepts using microsoft technologies
Zero redeployment with JRebel
Eclipse Summit 2009 - Aspect Oriented Modeling
End-To-End Visual Studio Application Lifecycle Management
Viliam Elischer - Ember.js - Jak zatopit a neshořet!
Part 1 workbench basics
Ember.js - Jak zatopit a neshořet!
10 interesting things about java

Viewers also liked (7)

PPTX
La suerte de María
DOCX
Quirida
PPTX
Dulces de carnaval
PDF
progress energy q4 2005earningsrelease
PDF
Good Governance Cooperatives
PPTX
Tecnologia educativa i
La suerte de María
Quirida
Dulces de carnaval
progress energy q4 2005earningsrelease
Good Governance Cooperatives
Tecnologia educativa i
Ad

Similar to Beginning Android development (20)

PPTX
Eclipse Vs Netbeans
PDF
Selenium training12 1
PDF
Selenium training12 1
PDF
Selenium training-course-content
PPTX
Framework
PPTX
Upcoming new features of selenium in automation testing
PPT
Programming skills for test automation
PDF
Basics of Selenium IDE,Core, Remote Control
PDF
Step By Step Guide For Buidling Simple Struts App Speakernoted
PPTX
Selenium online training
PPT
Selenium
PPT
The Nuxeo Way: leveraging open source to build a world-class ECM platform
KEY
Structured development in BMC Remedy AR System
PPTX
How to Build Composite Applications with PRISM
PPT
Agile Methodology-extreme programming-23.07.2020.ppt
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
PPTX
Microsoft ALM Platform Overview
PPTX
Twelve Factor - Designing for Change
PDF
Part 5 running java applications
PPT
"Eclipse Application Development" at GNUnify 07
Eclipse Vs Netbeans
Selenium training12 1
Selenium training12 1
Selenium training-course-content
Framework
Upcoming new features of selenium in automation testing
Programming skills for test automation
Basics of Selenium IDE,Core, Remote Control
Step By Step Guide For Buidling Simple Struts App Speakernoted
Selenium online training
Selenium
The Nuxeo Way: leveraging open source to build a world-class ECM platform
Structured development in BMC Remedy AR System
How to Build Composite Applications with PRISM
Agile Methodology-extreme programming-23.07.2020.ppt
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Microsoft ALM Platform Overview
Twelve Factor - Designing for Change
Part 5 running java applications
"Eclipse Application Development" at GNUnify 07
Ad

More from Stephen Gilmore (20)

PDF
Feedback on Part 1 of the CSLP
PDF
Feedback on Part 1 of the Software Engineering Large Practical
PDF
Arrays in Objective-C
PDF
More Stochastic Simulation Examples
PDF
Testing Android apps with Robotium
PDF
Common Java problems when developing with Android
PDF
Quick quiz on Objective-C
PDF
Getting started with Xcode
PDF
Working with databases in Android
PDF
Crash Course in Objective-C
PDF
SELP: Debugging, AVDs and Manifests
PDF
The Stochastic Simulation Algorithm
PDF
Beginning Android Development
PDF
Computer Science Large Practical coursework
PDF
Software Engineering Large Practical coursework
PDF
Introduction to the CSLP and the SELP
PDF
Fixing errors in Android Java applications
PDF
Feedback on Part 1 of the Individual Practical
PDF
Creating and working with databases in Android
PDF
Continuing Android development
Feedback on Part 1 of the CSLP
Feedback on Part 1 of the Software Engineering Large Practical
Arrays in Objective-C
More Stochastic Simulation Examples
Testing Android apps with Robotium
Common Java problems when developing with Android
Quick quiz on Objective-C
Getting started with Xcode
Working with databases in Android
Crash Course in Objective-C
SELP: Debugging, AVDs and Manifests
The Stochastic Simulation Algorithm
Beginning Android Development
Computer Science Large Practical coursework
Software Engineering Large Practical coursework
Introduction to the CSLP and the SELP
Fixing errors in Android Java applications
Feedback on Part 1 of the Individual Practical
Creating and working with databases in Android
Continuing Android development

Recently uploaded (20)

PPTX
Institutional Correction lecture only . . .
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Classroom Observation Tools for Teachers
PDF
Complications of Minimal Access Surgery at WLH
PDF
01-Introduction-to-Information-Management.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Final Presentation General Medicine 03-08-2024.pptx
Institutional Correction lecture only . . .
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Classroom Observation Tools for Teachers
Complications of Minimal Access Surgery at WLH
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Microbial disease of the cardiovascular and lymphatic systems
Microbial diseases, their pathogenesis and prophylaxis
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Computing-Curriculum for Schools in Ghana
Chinmaya Tiranga quiz Grand Finale.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Final Presentation General Medicine 03-08-2024.pptx

Beginning Android development

  • 1. Getting started Running an application Managing apps Debugging apps Designing layouts with XML CS/SE Individual Practical Stephen Gilmore October 7, 2011 School of Informatics CS/SE Individual Practical 1 / 44
  • 2. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Getting started Creating a new Android project CS/SE Individual Practical 2 / 44
  • 3. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Getting started Naming your project CS/SE Individual Practical 3 / 44
  • 4. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Getting started Specifying the platform CS/SE Individual Practical 4 / 44
  • 5. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Getting started Looking at samples CS/SE Individual Practical 5 / 44
  • 6. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Getting started A project is created CS/SE Individual Practical 6 / 44
  • 7. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Running an application Configuring an Android application CS/SE Individual Practical 7 / 44
  • 8. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Running an application Run configurations CS/SE Individual Practical 8 / 44
  • 9. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Running an application Setting the DNS server CS/SE Individual Practical 9 / 44
  • 10. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Running an application Running an Android application CS/SE Individual Practical 10 / 44
  • 11. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Running an application Starting the activity on the emulator CS/SE Individual Practical 11 / 44
  • 12. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Running an application The emulator running .08.15.png CS/SE Individual Practical 12 / 44
  • 13. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Running an application Searching the dictionary .08.24.png CS/SE Individual Practical 13 / 44
  • 14. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Running an application Autocompletion is used .08.37.png CS/SE Individual Practical 14 / 44
  • 15. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Running an application The application in the launchpad .09.09.png CS/SE Individual Practical 15 / 44
  • 16. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Managing apps Managing apps on the phone .09.24.png CS/SE Individual Practical 16 / 44
  • 17. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Managing apps Selecting an app for deletion .09.50.png CS/SE Individual Practical 17 / 44
  • 18. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Managing apps Forcing apps to stop .10.05.png CS/SE Individual Practical 18 / 44
  • 19. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Managing apps Forcing apps to stop .10.12.png CS/SE Individual Practical 19 / 44
  • 20. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Managing apps Uninstalling an app .10.16.png CS/SE Individual Practical 20 / 44
  • 21. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Managing apps Uninstalling an app .10.23.png CS/SE Individual Practical 21 / 44
  • 22. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Managing apps Uninstalling an app .10.27.png CS/SE Individual Practical 22 / 44
  • 23. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps Seeding a NullPointerException (NPE) CS/SE Individual Practical 23 / 44
  • 24. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps Try to run the application CS/SE Individual Practical 24 / 44
  • 25. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps User view of a NullPointerException .11.54.png CS/SE Individual Practical 25 / 44
  • 26. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps Change the Eclipse perspective CS/SE Individual Practical 26 / 44
  • 27. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps Dalvik Debug and Monitor Service CS/SE Individual Practical 27 / 44
  • 28. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps DDMS perspective with LogCat .58.21.png CS/SE Individual Practical 28 / 44
  • 29. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps Developer view of a NPE CS/SE Individual Practical 29 / 44
  • 30. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps Tracking the error back to the code CS/SE Individual Practical 30 / 44
  • 31. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps Error found, warning visible CS/SE Individual Practical 31 / 44
  • 32. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Debugging apps Bug removed, Java Problem disappears CS/SE Individual Practical 32 / 44
  • 33. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML Graphical view of XML in editor CS/SE Individual Practical 33 / 44
  • 34. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML Source code view of XML in editor CS/SE Individual Practical 34 / 44
  • 35. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML Outline view of XML in editor CS/SE Individual Practical 35 / 44
  • 36. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML The editor (and themes) CS/SE Individual Practical 36 / 44
  • 37. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML Changing the theme (Holo light) CS/SE Individual Practical 37 / 44
  • 38. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML Changing the theme (Theme Light) CS/SE Individual Practical 38 / 44
  • 39. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML Adding widgets with drag and drop CS/SE Individual Practical 39 / 44
  • 40. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML The graphical layout is updated CS/SE Individual Practical 40 / 44
  • 41. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML XML source automatically updated too CS/SE Individual Practical 41 / 44
  • 42. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML Undo changes in the editor CS/SE Individual Practical 42 / 44
  • 43. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML Errors in XML code CS/SE Individual Practical .59.11.png 43 / 44
  • 44. Getting started Running an application Managing apps Debugging apps Designing layouts with XML Designing layouts with XML Errors in XML can be subtle CS/SE Individual Practical .59.44.png 44 / 44