# Building On-Device AI Agents on Android with Google ADK: Real-Time SSE Streaming and Agent Inspection

DevFeed: [Building On-Device AI Agents on Android with Google ADK: Real-Time SSE Streaming and Agent Inspection](<https://devfeed.tech/articles/building-on-device-ai-agents-on-android-with-google-adk-part-5-solving-the-frozen-app-problem-63037.md>)

Original publisher: [Read original article](<https://medium.com/google-developer-experts/building-on-device-ai-agents-on-android-with-google-adk-part-5-solving-the-frozen-app-problem-037747544213?source=rss----a67bd6fa7d58---4>)

Author: Pankaj Rai

Published: 2026-10-01T02:32:07Z

Content type: tutorial

Language: en

Sources: [Google Developer Experts](<https://devfeed.tech/sources/google-developer-experts-medium.md>)

Topics: [On-device AI](<https://devfeed.tech/topics/on-device-ai.md>), [Android](<https://devfeed.tech/topics/android.md>), [google-adk](<https://devfeed.tech/topics/google-adk.md>), [Media Queries](<https://devfeed.tech/topics/media-queries.md>), [PaLM](<https://devfeed.tech/topics/palm.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [android](<https://devfeed.tech/tags/android.md>), [chain-of-thought](<https://devfeed.tech/tags/chain-of-thought.md>), [compose](<https://devfeed.tech/tags/compose.md>), [gemma](<https://devfeed.tech/tags/gemma.md>), [google-adk](<https://devfeed.tech/tags/google-adk.md>), [on-device-ai](<https://devfeed.tech/tags/on-device-ai.md>), [sse](<https://devfeed.tech/tags/sse.md>), [streaming](<https://devfeed.tech/tags/streaming.md>)

## AI overview

This tutorial addresses responsiveness and observability challenges when building on-device AI agents for Android. It describes real-time SSE token streaming and a live Chain-of-Thought inspector built with Jetpack Compose. The excerpt notes that generating a 100-word response with Gemma 2B on a mobile CPU typically takes 4 to 8 seconds in batch mode, leaving users without immediate feedback.

## Source excerpt

Master on-device agent observability. Stream tokens in real time with StreamingMode.SSE and build a live Chain-of-Thought inspector in... Continue reading on Google Developer Experts "