Lecture 2 Android Environment ANDArchitecture
Lecture 2 Android Environment ANDArchitecture
Application
Development
Lecture 02
Todays
Agenda
• Introduction to Android Environment
• Setting up Environment
• Application Fundamentals
• Android Platform Architecture
Development Environment
• Java is the most popular language used to develop Android
applications.
• Android devices don’t run .class and .jar files.
• Instead, to improve speed and battery performance
• Android devices use their own optimized formats for compiled
code.
• That means that you can’t use an ordinary Java development
environment
• You also need special tools to convert your compiled code into an
Android format, to deploy them to an Android device, and to let you
debug the app once it’s running
Old Developer
Android Environment
Eclipse IDE: type code
in,compile, not Android‐
specific
New Developer
Android Environment
Google developed it’s own IDEcalled
• Android Studio
Combines tools in
olddevelopment environment
into 1
Cleaner interface specifically for
Android Development (e.g. drag and
drop app design)
Android Studio
In December
will 2014, Google
stop supporting Eclipse
announcedit
IDE
Installing Android
Studio
The most important place to find information and links to
tools is the Android Developers site:
http://developer.android.com
Installing Android
StudioStep 1: Install Java (at least version 1.7)
Note: You may already have Java installed. Checkfirst
Can find the JDK at
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Cons:
Some hardware missing, especially hardware for sensingenvironment
Needs a lot of memory to run and eventually slows down the system
Emulator Limitations
No support for
Phone calls (calling or receiving)
USB connections
Camera/video capture (input)
Bluetooth
Sensors, acccelerometer, gyroscope, etc
Device‐attached headphones
Determining battery charge level and AC charging
state
Determining SD cardinsert/eject
Slow!!!
Running Android App on
RealPhone
Need USB cord to copy app from development PC to
phone
Setting up your
Project
After installing Android Studio, need to set up your
project
Tutorial: Android App Development for Beginners ‐ 3
– Setting up your project by Bucky Roberts
(thenewboston)
https://www.youtube.com/watch?v=r4oIez0sfvY