Build intelligent Android apps: Cloud and hybrid inference Google's Firebase AI Logic SDK now supports cloud and hybrid inference for Android apps, enabling developers to build intelligent features that combine on-device Gemini Nano models with cloud fallback for compatibility. The Jetpacker sample app demonstrates three implementations: a museum assistant using grounding techniques for real-time data, a restaurant review feature with hybrid routing, and tools to balance latency, cost, and offline availability. Welcome back to the blog post series " Build intelligent Android apps http://android-developers.googleblog.com/2026/07/build-intelligent-android-apps-introduction-jetpack.html " where we take a basic Android app and transform it into a personalized , intelligent , and agentic experience. In our previous post http://android-developers.googleblog.com/2026/07/android-on-device-inference.html we explored how to build intelligent on-device features using Gemini Nano through ML Kit's Prompt API. In this post, we will look at how you can leverage Firebase AI Logic to build cloud-hosted and hybrid AI features: Sometimes a use case requires AI models with greater world knowledge, a much larger context window, or the ability to handle complex queries. In those scenarios, we can leverage cloud models. Other times, you want the best of both worlds: using hybrid inference to run on-device when available to lower costs, while falling back to the cloud to ensure compatibility for all devices. Let’s look at how we implemented three cloud and hybrid features in Jetpacker https://github.com/android/ai-samples/tree/main/jetpacker : The Museum assistant is an interactive chatbot designed to help users plan their museum visits. It provides visitors with up-to-date details regarding specific exhibits, current opening hours, ticket pricing, and more. When building AI features, getting the model to answer with fresh, accurate, and specific real-world information is a common challenge. While cloud models possess massive amounts of world knowledge, they might not know about seasonal exhibits or the current day’s opening hours. To bridge this gap, we can use grounding techniques to add extra context to the model’s context window. The Firebase AI Logic SDK https://firebase.google.com/products/firebase-ai-logic supports three types of grounding: In Jetpacker, we dynamically construct the available tools based on enabled feature flags and initialize the generative model using the Firebase AI SDK: js // implementation "com.google.firebase:firebase-ai-logic" private var toolList = mutableListOf