Robotics Workshop: Android App Development
Robotics Workshop: Android App Development
By:-
Hardik Ajmera
Saksham Jain
What is operating system??
An operating system (OS) is a software that manages
hardware and applications running on it.
Evolution of mobile
phones
MOBILE OPERATING
SYSTEMS
What is Android???
An open source and Linux based mobile operating
system.
Open
source??
Open
Source
Is free to use
Original source code is available for
users to modify software.
History of
development
Android inc. founded by Andy Rubin , Chris October,
White, Nick Sears 2003
August,
Google acquires Android inc. 2005
November,
Android beta released 2007
Why Android ???
Look at the stats
Why android??
Open
source
Reduced cost
of
development
Different versions
What is an
app...??
App, termed as Application, is a software
used to perform specific functions.
Examples ?
I found these installed in
my phone ,are these apps
too???
Yes, These
are app too.
We use android
apps but can we
develop them???
How to develop them..??
Integrated Development
Environment (IDE)
It’s a Software that provides facilities for programmers to
develop another softwares
Even though you have prepared your android
app but where to check if it is running
EMULATOR
It is hardware or software
that enables one computer
system to behave like
another computer system.
Android app
Face Brain
User
Interface
User interface is everything that the user can see and interact with.
UI Components
Displays Buttons on the screen
Buttons
Displays Image On the Screen
Image view
Displays text on the screen
TEXT VIEW
Takes input from the
user
EDIT TEXT VIEW
Assignment 1- identify the
various views present in the
screenshot
UI layouts
A layout defines the visual
structure for a user interface,
such as the UI for
an activity or app widget.
Linear layout
A layout that organizes its
components into a single
horizontal or vertical row.
Grid-view
Grid View is
layout
a layout that
displays items in a
two-dimensional,
scrollable grid.
Relative layout
It is a layout that displays items in relative
positions.
ABSOLUTE
layout
A layout that lets you specify
exact locations (x/y
coordinates) of its components.
QUICK Recap !!!
Image View
Button
onCreate( )
onCreate()
OnClickListener( )
OnClickListener()
This is called when the
user clicks or focuses
upon any widget like
button, text, image etc.
OnlongClickListener
()
This is initiated when
the user focuses the
button for a long time.
setContentView( )
setContentView()
findViewByID( )
Create a reference link between xml and
java
setText( )
This is used to put text in
TextView .
getText()
This is used to fetch text
from EditText.
Example-
name=
(EditText)findViewById(R.id.username);
String username = name.getText().toString();
toString()
This is used to convert text
into string for further
operations.
Example-
name= (EditText)findViewById(R.id.username);
String username = name.getText().toString();
List of functions
1) onCreate()
2) OnClickListener()
3) OnLongClickListener()
4) setContentView()
5) findViewByID()
6) setText()
7) getText()
8) toString()
Assignment 2
Create a app
consisting of your
profile that
responds to users
click action
events
Phases of Android
App Development
Any queries??????
Mail the assignments at:
[email protected]
[email protected]