Professional Documents
Culture Documents
Module 5 Adet 313
Module 5 Adet 313
EMERGING TECHNOLOGIES
Outline / Introduction
Your business tag line here.
Objective
Callback Method 1
COURSE MODULE 5:CALL BACK METHODS
Callback Method 2
To contact us:
Page 1
Email:
HOME
WEEK 5: CALL BACK METHODS
Outline / Introduction Application Development & Emerging Technologies
Objective
Activities/Assignments
Java.Android activity is the <I’AM ANDROID>
subclass of ContextThemeWrapper
class. Android system initiates
its program with in an Activity
starting with a call on
onCreate() callback method. There
is a sequence of callback methods
that start up an activity and a
sequence of callback methods that
tear down an activity as shown in
the below Activity life cycle
diagram:
Page 2
HOME
TE
W IE
TKLE5: CALL BACK METHODS
Outline / Introduction Application Development & Emerging Technologies
Objective
Callback Method 1
OBJECTIVES
Callback Method 2 Application Development & Emerging Technologies
Callback Method 3
1. At the end of the period the students should be
AndroidManifest.xml able to know what is Android, development and its
API Level to define version of the platform.
Run our modified
Page 3
Objective
Callback Method 3
AndroidManifest.xml
Activities/Assignments
Objective
Callback Method 3
AndroidManifest.xml
Activities/Assignments
Page 4
Objective
Callback Method 3
AndroidManifest.xml
Activities/Assignments
package com.example.helloworld;
Objective
Page 4
Objective
Callback Method 1
ANDROIDMANIFEST.XML
Application Development & Emerging Technologies
Callback Method 2
Every activity you define for your application
Callback Method 3 must be declared in your AndroidManifest.xml
file and the main activity for your app must be declared
AndroidManifest.xml in the manifest with an <intent-filter> that includes
the MAIN action and LAUNCHER category as follows:
Run our modified
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" /
>
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Note:
If either the MAIN action or LAUNCHER category are not
declared for one of your activities, then your app icon
will not appear in the Home screen's list of apps.
Page 4
Objective
Activities/Assignments
Page 4
Objective
https://denofdevelopers.com/android-activity-
Online Videos and
lifecycle-exercise/
Activities/Assignments
Page 4
Objective
Callback Method 1
ACTIVITIES AND ASSIGNMENTS
Application Development & Emerging Technologies
Callback Method 2
Callback Method 3
Activity 1
AndroidManifest.xml
1. In activities from previous lesson, implement
Run our modified and define the function of callback method.
Activities/Assignments
Page 4