ITMC311 Lecture 1 Introduction To Mobile Application Components
ITMC311 Lecture 1 Introduction To Mobile Application Components
ITMC311 Lecture 1 Introduction To Mobile Application Components
Application Development
Introduction to
- Android Studio
- Mobile Application Components
Android Studio
Google's official Android IDE, in v1.0
as of November 2014
replaces previous Eclipse-based environment
based on IntelliJ IDEA editor
free to download and use
Java SE Development Kit 8
What is Android?
originally purchased from Android, Inc. in 2005
runs on phones, tablets, watches, TVs, ...
based on Java (dev language) and Linux (kernel)
and now #1 overall OS worldwide!
HTC Dream Oct 08
Resources
Build scripts
6
Android Manifest – example.
Its main purpose in life is to declare the components to the system:
Overall project config and settings.
It is the toolkit you use to build, test, run and package your apps.
It can run as an integrated tool from the Android Studio menu and
independently from the command line.
You can use the features of the build system to:
Customize, configure, and extend the build process.
Create multiple APKs for your app with different features using
the same project and modules.
Reuse code and resources across source sets.
The components involved in
building and running an app
Step-1: Android build system
Step-1: Continued
The Android Asset Packaging Tool (aapt) takes your application
resource files, such as the AndroidManifest.xml file and the XML
files for your Activities, and compiles them. An R.java is also
produced so you can reference your resources from your Java code.
Intents
Services
Content providers
BroadCast Receiver
Activities
An activity represents a single screen with a user interface.
For example:
An email app might have one activity
that shows a list of new emails,
another activity to compose an email,