0% found this document useful (0 votes)
58 views60 pages

UB - Android Development Boot Camp 01

This document provides an overview and agenda for an Android development boot camp. It introduces the instructor, Ronald L. Ramos, and lists the objectives of getting an overview of mobile app development and creating a simple app. It also covers topics like the Internet of Things, introductions to Android and Google's Nexus and Android One programs. The document outlines the minimum specs for a good Android phone and discusses why one would want to develop for Android. It provides instructions on setting up the Android development environment and goes through building a "Hello World" app as an example.

Uploaded by

Ronald Ramos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views60 pages

UB - Android Development Boot Camp 01

This document provides an overview and agenda for an Android development boot camp. It introduces the instructor, Ronald L. Ramos, and lists the objectives of getting an overview of mobile app development and creating a simple app. It also covers topics like the Internet of Things, introductions to Android and Google's Nexus and Android One programs. The document outlines the minimum specs for a good Android phone and discusses why one would want to develop for Android. It provides instructions on setting up the Android development environment and goes through building a "Hello World" app as an example.

Uploaded by

Ronald Ramos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 60

Android Development

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).

 Devices in the Nexus line are considered Google's


flagship Android products. They contain little to no
manufacturer or wireless carrier modifications to
Android (such as custom graphical user interfaces)
Google Android One
 Android One is a line of consumer electronics
devices that run the Android operating system. It is
a standard created by Google for Android systems,
and customers in the developing world. Google
manages the design, development, marketing, and
support of these devices while all manufacturing
are carried out by partnering original equipment
manufacturers (OEMs).
 Android One smartphones run software close to
stock Android, without the often extensive vendor-
specific modifications that many smartphone
vendors apply. Security and system updates are
handled by Google, avoiding problems some
earlier phones have had with lacking security
updates.[2][3] The first set of Android One devices
features MediaTek's quad-core MT6582 Mobile
System-on-Chip (Mobile SoC).

 Android One phones initially rolled out in Pakistan,


India, Bangladesh, Nepal,Indonesia, the
Philippines, Sri Lanka, Myanmar and other South
Asian countries in 2014. The first Android One
smartphones were by the Indian brands Micromax,
Spice and Karbonn in September 2014,
Minimum specs for a good Android
Phone
App development is not rocket
science
Paper
Toss
Fake Caller
Flashlight
Mobile development can rival
Desktop Applications
Angry
Birds
Mass Effect Infiltrator
What is Android?
Android is an open mobile phone platform that was
developed by Google and later by Open Handset
Alliance. Google defines Android as a "software
stack" for mobile phones.

A software stack is made up of operating


system(the platform on which everything runs), the
middleware (the programming that allows
applications to talk to a network and to one
another) and the applications (the actual programs
that phone will run)
Brief History
July 2005 - Google Inc. bought from Danger Inc

Open Handset Alliance was formed headed by


Google which is composed of companies like Intel,
T-Mobile, Spring Nextel and more.

In 2008, Android became available as an open


source and the ASOP(Android Open Source
Project) is responsible for maintainance and
development of android.
Android Versions
Version Number Name
1.1
1.5 Cupcake
1.6 Donut
2.0/2.1 Éclair
2.2.x Froyo
2.3.x Gingerbread
3.X Honeycomb
4.0-4.0.4 Ice Cream Sandwich
4.1-4.3.1 Jelly Bean
4.4 KitKat
5-5.1 Lollipop
6.0 Marshamallow
Android Version Market Share

Note: When developing an application, consider the market share of the


android version. The higher the market share, the higher number your
target market is.
Screen Densities Distribution
Why develop for Android?
 Android is an open-source platform based on the Linux kernel,
and is installed on thousands of devices from a wide range of
manufacturers.
 Android exposes your application to all sorts of hardware that
you’ll find in modern mobile devices — digital compasses, video
cameras, GPS, orientation sensors, and more.
 Android’s free development tools make it possible for you to
start writing software at little or no cost.
 When you’re ready to show off your application to the world, you
can publish it to Google’s Android Market. Publishing to Android
Market incurs a one-off registration fee (US $25 at the time of
writing) and, unlike Apple’s App Store which famously reviews
each submission, makes your application available for
customers to download and buy after a quick review process —
unless the application is blatantly illegal.
More Android Advantages
 The Android SDK is available for Windows, Mac and Linux, so
you don’t need to pay for new hardware to start writing
applications.
 An SDK built on Java. If you’re familiar with the Java
programming language, you’re already halfway there.
 By distributing your application on Android Market, it’s available
to hundreds of thousands of users instantly. You’re not just
limited to one store, because there are alternatives, too. For
instance, you can release your application on your own blog.
Amazon have recently launched their own Android app store
also.
 As well as the technical SDK documentation, new resources are
being published for Android developers as the platform gains
popularity among both users and developers.
Setting up the Android
Development Environment
What you’ll need

The Bundle is found on developer.android.com


Android Studio
 http://developer.android.co
m/tools/studio/index.html

 Android Studio is the official


IDE for Android application
development, based on
IntelliJ IDEA
Creating your first project

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

 Min SDK: Android 4.0


 Application Name:
 My First Form

 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

 Whenever you click


the button it will
display ”Hello ” +
the content of the
EditText in the
TextView
Main.xml
Activity code
END OF Day 1

You might also like