UB - Android Development Boot Camp 01
UB - Android Development Boot Camp 01
Boot Camp
Ronald L. Ramos
2016
Ronald L. Ramos
Ronald L. Ramos
[email protected]
09298874076/ 5113175
Twitter: @taleweaver
Facebook: [email protected]
Blog: http://brickstories.blogspot.com
Presentations
Get the presentation here:
http://mobiledev.ronaldramos.info/UBa
ndroid2016/
Introduce yourself
Name/Nickname
Team
Programming experience
Expectations for the training
Smartphone user? What’s your smartphone?
Favorite tv show? Why?
Objectives
Get an overview of Mobile Application development
Know the basic skills needed to create a simple app.
Create a simple application
The Internet of Things
What is it?
“Imagine a world where everything can be both analogue
and digitally approached - reformulates our relationship
with objects – things- as well as the objects
themselves. Any object that carries an RFID tag relates
not only to you, but also through being read by a RFID
reader nearby, to other objects, relations or values in a
database. In this world, you are no longer alone,
anywhere.”
McKinsey Quarterly
“More objects are becoming embedded with sensors and
gaining the ability to communicate. The resulting
information networks promise to create new business
models, improve business processes, and reduce costs
and risks.”
An example
Cisco’s view
Introduction to Android
Smart Phones
There are now more Android-enabled phones
out there than iPhones. 400,000 new Android
devices are activated each day.
Google Nexus Program
Google Nexus is a line of consumer electronic
devices that run the Android operating system.
Google manages the design, development,
marketing, and support of these devices, but some
development and all manufacturing are carried out
by partnering with original equipment
manufacturers (OEMs).
As of August 2016, the devices currently available
in the line are two smartphones, the Nexus 6P
(made with Huawei) and Nexus 5X (made with
LG). The line has also included tablets and
streaming media players, though neither type of
device is currently available. The most recent
tablet was the Nexus 9 (made with HTC), and the
most recent streaming media player the Nexus
Player (made with Asus).
Hello World
Creating a New Android Project
Open Android Studio
Select “Start a new Android
Studio Project”
Configure project
Select Target Devices
Select Activity Template
Name the default files
The workbench
Running the project
Click “Play” on the toolbar
You will be asked where to
run your app.
Choose “Launch Emulator”
Running the emulator
The running app
Your first Android App
Create a New Android Project
Click on File > New > Project
Select Android Application
Create a new Android Project
Project Name:
MyFirstForm
Package Name
com.yourname.myfirstproject
Activity Name:
MyFirstActivity
Create a New Android Project
Click on Finish
Once the project appears in project explorer you have just
completed your first android app
Try it by clicking run
Modifying Your Project
Modify main.xml in res\layout
Modify the Activity
Run the Activity
Make sure you
have the LogCat
screen
Modify the Activity again
2nd run of application
Toast message
appears on the
screen reflecting
value in EditText
control
Example:
Create the following
form
It contains an
EditText, Button and
TextView