Beruflich Dokumente
Kultur Dokumente
JDK
Reference: http://developer.android.com/sdk/installing.html
Development
Process for
Android
Applications
Android Architecture
Android Runtime Environment
• Dalvik VM for each application
• common Linux kernel
A2
A1 A4
A3
Basics: Data Exchange
• Binary or text data
XML or JSON …
A2
• Independent data
A1 A4 checkers tools available.
A3
Sample XML data file
Text format:
Belgian Waffles, 5.95, two of our famous Belgian Waffles with plenty of real … , 650
Strawberry Belgian Waffles, 7.95, light Belgian waffles covered with …., 900
Application info: Manifest file
• Declare components
• Declare application requirements
• Application Resources?
Activity lifecycle: 3 states
• Resumed or Running
• Paused
• Stopped
State machine
Code
Service
Lifecycle
User Interface Design
XML Layouts
• Declare UI elements in XML. Android provides
a straightforward XML vocabulary that
corresponds to the View classes and
subclasses.
• Instantiate layout elements at runtime. Your
application can create View and ViewGroup
objects (and manipulate their properties)
programmatically.
Application Resources
Building & running Android app
Program to say “Hello!”
Native Development Kit (NDK)
• Use C/C++ for development
• primarily for performance critical components
Summary
• Clean, sophsticated, yet reasonably simple.
• Android requires strong Java skills – heavy use of
derived classes (inheritance).
• Development: Java code & XML definitions
• Reference:
http://developer.android.com/sdk/installing.html
• Install Android development environment and
play with a few examples or try your own ideas!
• Marketable skill in the industry!
More references
• http://www.vogella.de/articles/AndroidIntent/article.html
• http://developer.android.com/resources/browser.html?tag=sa
mple
Questions & Answers
jeyv@utdallas.edu