0% found this document useful (0 votes)
14 views7 pages

AndroidJavaProgramming RDP265

Uploaded by

N V
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
14 views7 pages

AndroidJavaProgramming RDP265

Uploaded by

N V
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 7

Android Software Development with Java Programming

Course Outline

Android and Java


Android and Java
The Java Development Kit
The Eclipse Integrated Development Environment (IDE)
Components of the SDK

The Java Language


Java Comments
Javadoc Comments
Types
Primitive Types
Java Primitive Data Types
Variable Declaration and Initialization
Integer Literals
Floatingpoint Literals
Character Literals
Reference Types
Difference Between Primitive Type and Reference Type
Strings
Statements and Expressions
Statements
if/else Conditionals
Conditionals
do/while loops
The for Loop
The Enhanced for Loop
The Enhanced for Loop Examples
switch Statements
break/continue
break/continue Examples
Exceptions
Exception Class
Exception Handling
try/catch
Multiple catch Clauses
The finally Clause
finally Clause
Exception Propagate Up The Call Stack
Checked and Unchecked Exceptions
Throwing Exceptions
Assertions
Assertion
Enabling and Disabling Assertions
Arrays
Using Arrays

© Radix Systems Pte Ltd RDP265 Page 1/7


Android Software Development with Java Programming
Course Outline

Creating Classes and Objects


Using Java Classes
Comparing Classes and Objects
Creating Objects
Using the new Operator
Comparing Primitives and Objects
Using the null Reference
Assigning References
Declaring Instance Variables
Accessing public Instance Variables
Defining Methods
Calling a Method
Specifying Method Arguments: Examples
Returning a Value from a Method
Calling Instance Methods
Applying Encapsulation in Java
Passing Primitives into Methods
Passing Object References into Methods
What Are Class Variables?
Initializing Class Variables
What Are Class Methods?
Examples in Java
What Are Java Packages?
Grouping Classes in a Package
Setting the CLASSPATH with Packages
Access Modifiers
Overloading Methods
Using the this Reference
Initializing Instance Variables
What Are Constructors?
Defining and Overloading Constructors
Sharing Code Between Constructors
final Variables, Methods, and Classes
Reclaiming Memory
Using the finalize() Method

Using Code with Inheritance and Polymorphism


Key ObjectOriented Components
Example of Inheritance
Specifying Inheritance in Java
What Does a Subclass ObjectLook Like?
Default Initialization
The super Reference
The super Reference Example
Using Superclass Constructors

© Radix Systems Pte Ltd RDP265 Page 2/7


Android Software Development with Java Programming
Course Outline

Specifying Additional Methods


Overriding Superclass Methods
Invoking Superclass Methods
Example of Polymorphism in Java
Treating a Subclass as Its Superclass
Using the instanceof Operator
Limiting Methods and Classes with final
Ensuring Genuine Inheritance

Structuring Code by Using Abstract Classes and Interfaces


Defining Abstract Classes
Creating Abstract Classes
What Are Abstract Methods
Defining Abstract Methods
Defining and Using Interfaces
Examples of Interfaces
Creating Interfaces
Implementing Interfaces
Sort: A RealWorld Example

Throwing and Catching Exceptions


What Is an Exception
How Does Java Handle Exceptions
Advantages of Java Exceptions:Separating Error Handling Code
Advantages of Java Exceptions:Passing Errors Up the Call Stack
Advantages of Java Exceptions:Exceptions Cannot Be Ignored
Checked Exceptions, UncheckedExceptions, and Errors
What to Do with an Exception
Catching and Handling Exceptions
Catching a Single Exception
Catching Multiple Exceptions
Cleaning Up with a finally Block
Catching and Handling Exceptions
Allowing an Exception to Pass to theCalling Method
Throwing Exceptions
Creating Exceptions
Catching an Exception and Throwing aDifferent Exception

Android Architecture
Android Time Line
The Android Architecture
Dalvik Java Virtual Machine (JVM)
Android Applications Design
Android Components: Activities
Android Components: Intents

© Radix Systems Pte Ltd RDP265 Page 3/7


Android Software Development with Java Programming
Course Outline

Android Components: Services


Android Components: Content Providers
Android Components: Broadcast Receivers
Android Components: System API
Android Application Distribution
Android Application Security

Android Application Components


Application Entry Point
Activities, Intents, and Tasks
Other Android Components
Activity
Creating an Activity
Activity Lifecycle
Activities
Activities States
Activity Lifecycle
Activity Loops
Activities In The Manifest
Recreating Activities
Activity: Conclusions

Android Application ComponentsIntent


More on Activities: Activity States
More on Activities: Saving Resources
Activities and AndroidManifest.xml
Intent Definition
Intent types
Intent Components
Intent types: Explicit Intents
Intent with Results
Intent Types
Intent types: Implicit Intents
Intent Components
Intent Types: Implicit Intents
Intent Types: Intent Resolution

Layouts
Views: Outline
Some Useful Methods
ViewGroup and layout
Layouts
LinearLayout
LinearLayout Weight
LinearLayout Gravity

© Radix Systems Pte Ltd RDP265 Page 4/7


Android Software Development with Java Programming
Course Outline

RelativeLayout
TableLayout
FrameLayout and AbsoluteLayout
Adapters
AdapterView
ListView example
ListView
Other views/adapters

Widgets and Events


Overview
Android: Views Objects
View Group
Widget
Widgets: Java and XML Code
Widgets: Hierarchy of the Classes
TextView
Widgets: TextView Methods
Widgets: Linkify Elements
Widgets: EditText
Widgets: AutocompleteTextView
Widgets: Button
Widgets: Button and CompoundButton
Widgets: Spinners
Widgets: Button and CompoundButton
Widgets: ImageView
Widgets: CheckedTextView
Views and Events
Views and Events: ActionListener
Views and Events

Animations, Menu and Dialogs


Animations
Animations: FramebyFrame
Animations: framebyframe, XML
Animations: FramebyFrame, Java
Animations: FramebyFrame
Animations: Tween
Tween: animation.xml
Tween: Inside the Code
Tween: Adding an Offset
Tween: AnimationListener
Adding an Offset and a Listener
Tween: Animations
Menu: Outline

© Radix Systems Pte Ltd RDP265 Page 5/7


Android Software Development with Java Programming
Course Outline

Menu: Creating a Menu


Menu: The Declarative Approach
Menu: menu.xml
Menu: Inflate The Menu
Toast: Making a Toast
Dialog: Outline
Dialog: AlertDialog
Dialog: AlertDialog with a List

Notifications, Threads and Services


Overview
Service Notifications
Status Bar Notifications
Toast Notifications
Processes and Threads
Thread Management
AsyncTask
Thread Management
Services
Service Lifetime
Foreground Services
Service Lifetime
Bound Service
Broadcast Receiver

Data Management
Data: Outline
Managing Data
Preference System
Preferences Types
Preferences Types
Preference Example
Preferences Editor
Preferences screens
The Android FileSystem
File I/O
Raw Text Files: How?
streamToString()
XML Files
XML Files: example
XML Files: Code Example
SQLite
SQLite
SQLite: Example
SQLite: Better to Use Constants

© Radix Systems Pte Ltd RDP265 Page 6/7


Android Software Development with Java Programming
Course Outline

SQLite: Creation Code


SQLite: Insert Code
SQLite: Delete Code
SQLite: Update
SQLite: Search Code
Cursors: Data Handlers
Cursors: Methods
Content Providers
To Build a Content Provider
How to use a Content Provider
Example: Contacts
Contacts: Code

System Services
System Services
Power Service
Vibrator Service
Alarm Service
Sensor Service
Sensors List
How to “use” a Sensor
Audio Service
Telephony Service
SMS Service
Connectivity Service
WiFi Service

Fragments
Fragments
Fragments Design Philosophy
Fragment Transactions
Fragment Creation
Adding a Fragment to the UI
Fragment Lifecycle
Fragment Creation
Fragment Lifecycle
Managing Fragments
Fragment Transactions

© Radix Systems Pte Ltd RDP265 Page 7/7

You might also like