Course Outline

Create Smart Apps

Database and Local Storage in Android (SQLite & Room) Training Course

Rating

9/10

Duration

3 Days

Course Overview

This course provides a deep dive into Android’s local storage solutions, focusing on SQLite and the Room persistence library. Participants will learn how to store, retrieve, update, and manage data in Android applications efficiently. The course covers database design, SQL queries, Room database architecture, and best practices for handling local data. By the end of the training, participants will be able to implement robust and scalable local storage solutions for Android applications.

Format of Training

  • Instructor-led sessions
  • Hands-on lab exercises
  • Interactive discussions
  • Practical coding demonstrations

Course Objectives

  1. Understand the fundamentals of data storage in Android.
  2. Work with SQLite to create and manage databases.
  3. Implement the Room persistence library for modern database management.
  4. Perform CRUD (Create, Read, Update, Delete) operations on local databases.
  5. Use LiveData and ViewModel to handle database operations efficiently.
  6. Optimize local storage performance and security.
  7. Implement best practices for data management in Android applications.

Prerequisites

Course Outline

Day 1

Session 1: Introduction to Android Data Storage

  • Overview of Android’s data storage options
  • Differences between SharedPreferences, SQLite, and Room
  • Choosing the right storage solution for an app

Session 2: Working with SQLite in Android

  • Understanding SQLite and its architecture
  • Creating and managing SQLite databases
  • Writing SQL queries for data operations

Session 3: Implementing SQLite in an Android Application

  • Creating a SQLite database helper class
  • Performing CRUD operations (Insert, Read, Update, Delete)
  • Handling database versioning and migrations

Day 2

Session 1: Introduction to Room Persistence Library

  • Understanding the advantages of using Room over SQLite
  • Setting up Room in an Android project
  • Defining Entity, DAO (Data Access Object), and Database classes

Session 2: Performing Database Operations with Room

  • Writing and executing SQL queries with Room DAO
  • Using LiveData and ViewModel to observe database changes
  • Handling complex data structures with TypeConverters

Session 3: Managing Database Transactions and Relationships

  • Implementing one-to-many and many-to-many relationships
  • Using transactions for atomic operations
  • Debugging Room database queries

Day 3

Session 1: Optimizing Database Performance

  • Implementing indexing for faster queries
  • Using background threads for database operations
  • Managing large data sets efficiently

Session 2: Data Security and Best Practices

  • Encrypting local databases for security
  • Handling database migrations and schema changes
  • Ensuring data consistency and avoiding memory leaks

Session 3: Hands-On Project: Building a Local Storage Solution

  • Designing a database schema for a real-world app
  • Implementing Room database with LiveData and ViewModel
  • Debugging and optimizing database interactions

Bespoke Option

We are open to customizing this program to align with your specific learning objectives. If your team has particular goals or areas they wish to focus on, we would be happy to tailor the course outline to meet those needs and ensure the program supports the achievement of your desired outcomes.

Further Learning Opportunities

State Management in Android with ViewModel and LiveData Training Course

This course provides an in-depth understanding of state management in Android applications using ViewModel and LiveData.

Building Android Apps with Jetpack Components Training Course

This course provides an in-depth exploration of Jetpack Components, the modern tools and libraries recommended by Google for building scalable, maintainable, and efficient Android applications.

Authentication and Security in Android Apps Training Course

This course provides a comprehensive understanding of authentication and security in Android applications.

Database and Local Storage in Android (SQLite & Room) Training Course

Course Name: Database and Local Storage in Android (SQLite & Room) Training Course

Request More Information