Android Fundamental: Android Architecture, User Interaction and Intuitive Navigation



Introduction to Android

Android Fundamental: Android Architecture, User Interaction and Intuitive Navigation

What is Android?

  • Android is an operating system.

  • An operating system is software that controls the phone.

  • It helps apps run properly.

  • Google develops Android.

Simple Meaning to Remember:
👉 Android = Software that runs your mobile phone.

Real-life Example

  • When you open Instagram or WhatsApp, Android helps them work.

  • Just like a principal manages a college, Android manages apps.

Why Android is Important?

  • Most smartphones use Android.

  • Developers can build many apps.

  • Companies sell products through Android apps.

College Example

  • Your college app for attendance runs on Android.

Exam Tip 📌

  • Define Android in 2–3 simple lines.

  • Write: “Android is a mobile operating system developed by Google.”

Android Architecture

What is Architecture?

Architecture means structure or design of a system.

Think of a building:

  • Foundation

  • Rooms

  • Roof

Android also has layers like that.

Layers of Android Architecture

1. Linux Kernel

  • Base layer.

  • Manages hardware (camera, battery, memory).

Example

  • When you take a photo, this layer connects the app with the camera.

2. Libraries

  • Ready-made code.

  • Helps in graphics, database, etc.

Example

  • Playing video in YouTube uses these libraries.

3. Android Runtime

  • Runs Android apps.

  • Converts app code into machine code.

Simple Meaning

  • It translates your app language into phone language.

4. Application Layer

  • Top layer.

  • Contains apps like WhatsApp, Instagram.

Simple Diagram (Text Form)

Apps
↑
Android Runtime
↑
Libraries
↑
Linux Kernel

Remember This 🧠

Bottom controls hardware.
Top shows apps to users.

Layouts, Views and Resources

Layout

Layout means how things look on screen.

  • It decides position of buttons and text.

  • Written in XML (a design language).

Example

  • Login screen design in a shopping app.

Views

View means any item you see on screen.

  • Button

  • Text

  • Image

Example

  • “Buy Now” button in Amazon app.

Resources

Resources are extra files.

  • Images

  • Colors

  • Strings (text values)

Example

  • App logo image.

  • Blue color theme.

Quick Table

Term Meaning Example
Layout Screen design Login page
View Item on screen Button
Resource Extra file Image

Exam Question (Short)

  • What is layout?

  • What is view?

Activities and Intents

Activity

Activity means one screen of an app.

  • Each screen = one activity.

Example

  • Login screen

  • Payment screen

  • Profile screen

Each is separate activity.

Intent

Intent means message to move from one screen to another.

Simple Meaning
👉 Intent = Request to open something.

Real-Life Example

  • You click “Checkout”.

  • App opens payment page.

  • Intent helps open that screen.

Activity Lifecycle and Saving State

Activity Lifecycle

Lifecycle means life stages of a screen.

Main stages:

  • onCreate() → Screen starts

  • onStart() → Screen visible

  • onResume() → User interacts

  • onPause() → User leaves screen

  • onStop() → Screen hidden

  • onDestroy() → Screen closed

Simple Flow

Create → Start → Resume
Pause → Stop → Destroy

Saving State

Saving state means saving data before screen closes.

Example

  • You type form data.

  • Phone rotates.

  • Data should not disappear.

App saves data using:

  • onSaveInstanceState()

Exam Tip 📌

Draw lifecycle diagram in exam for more marks.

Implicit and Explicit Intents

Explicit Intent

  • Open a specific screen.

  • You know exact target.

Example

  • Login screen → Dashboard screen.

Implicit Intent

  • Open any app that can handle action.

  • You do not select specific app.

Example

  • Share photo → Phone shows WhatsApp, Instagram, Gmail.

Comparison Table

Type Meaning Example
Explicit Fixed screen Open profile page
Implicit Any suitable app Share image

Material Design

Material Design is design style made by Google.

It gives:

  • Clean look

  • Smooth animation

  • Simple colors

Example

  • Floating action button (+ button).

Why Important?

  • Makes app attractive.

  • Improves user experience.

Theme, Style and Attributes

Theme

Theme controls full app look.

Example

  • Dark mode in Instagram.

Style

Style controls look of one view.

Example

  • Button color and size.

Attribute

Attribute means small property.

Example

  • textColor

  • backgroundColor

Input Controls

Input controls take user input.

  • EditText (text box)

  • Button

  • CheckBox

  • RadioButton

College Example

  • Attendance form with checkboxes.

Menus

Menu shows extra options.

Types:

  • Options menu (top three dots)

  • Context menu (long press)

  • Popup menu

Example

  • Delete, Share options.

Widgets

Widget is small app on home screen.

Example

  • Weather widget

  • Clock widget

Screen Navigation

Navigation means moving between screens.

Ways:

  • Button click

  • Bottom navigation bar

  • Drawer menu

Example

  • Instagram bottom bar (Home, Search, Profile).

RecyclerView

RecyclerView shows large list efficiently.

Why needed?

  • Saves memory.

  • Reuses item views.

Example

  • Instagram feed scrolling.

ListView

Old method to show list.

Less efficient than RecyclerView.

RecyclerView vs ListView

Feature RecyclerView ListView
Performance Better Basic
Modern Use Yes Old
Flexible More Less

Adapters

Adapter connects data to list.

Simple Meaning
👉 Adapter = Bridge between data and screen.

Example

  • Product list in shopping app.

Drawables

Drawable means graphic image.

Types:

  • PNG image

  • Shape

  • Vector image

Example

  • App icon

  • Button background

Notifications

Notification shows message outside app.

Example

  • WhatsApp message alert.

  • Amazon delivery update.

Why important?

  • Engage users.

  • Give reminders.

Important Exam Questions

Short Questions

  • Define Android.

  • What is activity?

  • Difference between implicit and explicit intent.

  • What is RecyclerView?

Long Questions

  • Explain Android architecture with diagram.

  • Explain activity lifecycle.

  • Compare RecyclerView and ListView.

  • Explain intents with examples.

Key Points to Remember

  • Android = Mobile operating system.

  • Activity = One screen.

  • Intent = Message to open screen.

  • Lifecycle = Life stages of screen.

  • RecyclerView = Modern list.

  • Adapter = Data connector.

Final Quick Revision Summary

  • Android has layered architecture.

  • Layout controls screen design.

  • Views are UI elements.

  • Activity represents a screen.

  • Intent moves between screens.

  • Lifecycle manages screen states.

  • Material Design improves look.

  • RecyclerView handles large lists.

  • Notifications inform users.

✅ Study these points.
✅ Draw diagrams in exam.
✅ Write definitions clearly and simply.