# Using Local RAG and Room SQLite for On-Device Android Agents

DevFeed: [Using Local RAG and Room SQLite for On-Device Android Agents](<https://devfeed.tech/articles/building-on-device-ai-agents-on-android-with-google-adk-part-4-local-rag-on-android-storing-59096.md>)

Original publisher: [Read original article](<https://proandroiddev.com/building-on-device-ai-agents-on-android-with-google-adk-part-4-local-rag-on-android-storing-6f6d8947899d?source=rss----c72404660798---4>)

Author: Pankaj Rai

Published: 2026-09-24T08:18:29Z

Content type: tutorial

Language: en

Sources: [ProAndroidDev](<https://devfeed.tech/sources/proandroiddev-medium.md>)

Topics: [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [google-adk](<https://devfeed.tech/topics/google-adk.md>), [Android](<https://devfeed.tech/topics/android.md>), [On-device AI](<https://devfeed.tech/topics/on-device-ai.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [google-adk](<https://devfeed.tech/tags/google-adk.md>), [on-device-ai](<https://devfeed.tech/tags/on-device-ai.md>), [retrieval-augmented-generation-rag](<https://devfeed.tech/tags/retrieval-augmented-generation-rag.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>)

## AI overview

This tutorial explains using Google ADK and Room SQLite to give an on-device Android agent persistent memory and local retrieval-augmented generation. It describes avoiding large prompts by retrieving relevant notes from a structured local database.

## Source excerpt

Combine Google ADK with Android's Room database to give your on-device agent permanent memory and local Retrieval-Augmented Generation. Continue reading on ProAndroidDev "