Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

DFP40093 JTMK | PUO

MOBILE DEVELOP
THE
ANDROID
APPLICAT
ION

APPLICATION

DEVELOPMENT
DFP40093 JTMK | PUO

Topic's 2 Agenda

1 Design Application User Interface

Navigating between Activities


2

Utilize telephony and SMS


3 services
tivity Life Cycle
Ac
JTMK|PUO

onCreate()—Called when the activity is first


createdConnectivity
onStart()—Called when the activity becomes
visible to the user
onResume()—Called when the activity starts
interacting with the user
onPause()—Called when the current activity is
being paused and the previous activity
is being resumed
onStop()—Called when the activity is no
longer visible to the user
onDestroy()—Called before the activity is
destroyed by the system (either manually or
by the system to conserve memory)
onRestart()—Called when the activity has been
stopped and is restarting again
JTMK|PUO

Views

An activity contains views and ViewGroups.


A view is a widget that has an appearance on screen.
A view derives from the base class android.view.View.
Following are the some of common View subclasses that will be used in android applications.

TextView
EditText
Button
CheckBox
RadioButton
JTMK|PUO

ViewGroup

One or more views can be grouped into a ViewGroup.


A ViewGroup (which is itself a special type of view) provides the layout in which you can order the
appearance and sequence of views. Examples of ViewGroups include RadioGroup and ScrollView.
A ViewGroup derives from the base class android.view.ViewGroup.
Another type of ViewGroup is a Layout.
A Layout is another container that derives from android.view.ViewGroup and is used as a container
for other views.
ViewGroup is to group views logically—such as a group of buttons with a similar purpose
JTMK|PUO
Layout

Layout is used to group and arrange views visually on the screen.


The Layouts available to you in Android are as follows:
➤➤ FrameLayout
➤➤ LinearLayout(Horizontal)
➤➤ LinearLayout(Vertical)
➤➤ TableLayout
➤➤ TableRow
➤➤ GridLayout
➤➤ RelativeLayout
JTMK|PUO

Types

of Layout
JTMK|PUO
JTMK|PUO
Adapter
ayout with
L
JTMK|PUO
Adapter
ayout with
L

The content for your layout is dynamic or not pre-determined,


layout is subclasses AdapterView to populate the layout with
views at runtime.
A subclass of the AdapterView class uses an Adapter to bind data
to its layout.
Display Orientation JTMK|PUO

Portrait Landscape
JTMK|PUO

Notification

A notification is a message that Android displays outside


your app's UI to provide the user with reminders,
communication from other people, or other timely
information from your app. Users can tap the notification
to open your app or take an action directly from the
notification
JTMK|PUO

Simple Action Bar

Launcher Icons

Tab Icon Action Bar

Notification Action
Class activity: JTMK|PUO

Identify type of layout/view applied.

You might also like