MBL App Development
MBL App Development
1. Activity Lifecycle
Configuration changes invalidate the current layout or other resources in your activity when the
user:
● Rotates the device
● Chooses different system language, so locale changes
● Enters multi-window mode (from Android 7)
● onPause()
● onStop()
● onDestroy()
● onCreate()
● onStart()
● onResume()
● in onCreate(Bundle mySavedState)
Preferred, to ensure that your user interface, including any saved state, is back up and
running as quickly as possible
● Implement callback (called after onStart())
onRestoreInstanceState(Bundle mySavedState)
1. What is an Intent?
An Intent is:
○ start an Activity
○ start a Service
○ deliver a Broadcast
4. App Chooser
Common actions are usually handled by installed apps (both system apps and other
apps), such as:
1. Bugs
2. Debugging
● identify problems
● find where in the source code the problem is created
● so that you can fix it
4. Log Levels
2. Types of testing
● Levels of Testing
○ Component, integration, protocol, system
● Types of Testing
○ Installation, compatibility, regression, acceptance
○ Performance, scalability, usability, security
● User interface and interaction tests
○ Automated UI testing tools
○ Instrumented testing (covered in another chapter)
3. Tests in your project
4. Unit tests
o More than 25 libraries in the Android SDK that provide features not built into the
Android framework
Backward compatibility
Always use the support library version of a component if one is available
Libraries
v4 Support Libraries
v7 Support Libraries
o Backwards compatibility
o TV-specific components
o UI components and layouts
o Google Cast support
o Color palette
o Preferences
o appcompat—compatibility wrappers
o cardview— new UI component (material design)
o gridlayout—rectangular cell (matrix) Layout
o mediarouter—route A/V streams
o palette—extracting color from an image
o recyclerview—efficient scrolling view
o preference—modifying UI settings
v7 appcompat library
Touch Gestures
● long touch
● double-tap
● fling
● drag
● scroll
● pinch
Input controls such as keyboards send input to the view that has focus
1. Types of Menus
An app bar is a UI component that provides navigation, branding, and action elements at the top
of an application screen.
Action Mode is a temporary, contextual user interface in Android that allows users to perform
specific actions on selected items, such as copy, delete, or share, typically displayed as a toolbar
at the top of the screen.
9. Introduction to fragments
● Parent screen—Screen that enables navigation down to child screens, such as home
screen and main Activity
● Collection sibling—Screen enabling navigation to a collection of child screens, such as a
list of headlines
● Section sibling—Screen with content, such as a story
● Descendant navigation
○ Down from a parent screen to one of its children
○ From a list of headlines—to a story summary—to a story
● Ancestral navigation
○ Up from a child or sibling screen to its parent
○ From a story summary back to the headlines
● Lateral navigation
○ From one sibling to another sibling
○ Swiping between tabbed views
4.5 RecyclerView
1. What is a RecyclerView?
A layout manager is a component in GUI frameworks (like Android or Java Swing) responsible
for arranging UI elements (views or components) within a container, defining their position, size,
and alignment dynamically based on the available space and layout rules.
4. What is an adapter?
An adapter in programming (commonly in Android) acts as a bridge between a data source and
a UI component, such as a ListView or RecyclerView, to display data dynamically in a
structured format.
5. What is a ViewHolder?