<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gauresh Kambli on Medium]]></title>
        <description><![CDATA[Stories by Gauresh Kambli on Medium]]></description>
        <link>https://medium.com/@gaureshkambli31?source=rss-c7e79ada3543------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0K9xmJL_tcMzmKT3</url>
            <title>Stories by Gauresh Kambli on Medium</title>
            <link>https://medium.com/@gaureshkambli31?source=rss-c7e79ada3543------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:21:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gaureshkambli31/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Gemma Models in Android Studio: A Practical Guide for Android Developers]]></title>
            <link>https://medium.com/@gaureshkambli31/gemma-models-in-android-studio-a-practical-guide-for-android-developers-1f361549d557?source=rss-c7e79ada3543------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f361549d557</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Gauresh Kambli]]></dc:creator>
            <pubDate>Wed, 08 Apr 2026 12:33:02 GMT</pubDate>
            <atom:updated>2026-04-08T12:33:02.597Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RnF2FPlpBoIRTSUQqdc-sg.jpeg" /></figure><p>Artificial Intelligence is rapidly moving from the cloud to edge devices, and Google’s <strong>Gemma</strong> family of models is a big step in that direction. If you’re an Android developer, you might be wondering: <em>Can I use Gemma directly inside Android Studio?</em></p><p>The short answer is <strong>yes — but not natively</strong>. In this article, we’ll explore how you can integrate Gemma into your Android apps, the available approaches, and what actually works in real-world scenarios.</p><h3>🚀 What is Gemma?</h3><p>Gemma is a family of lightweight, open AI models introduced by Google, designed to run efficiently on consumer hardware. Unlike large cloud-only models, Gemma is optimized for:</p><ul><li>On-device inference</li><li>Lower latency</li><li>Better privacy</li><li>Offline capabilities</li></ul><p>Typical available sizes include <strong>2B and 7B parameter models</strong>, making them more practical than larger LLMs.</p><h3>🤔 Can You Use Gemma Directly in Android Studio?</h3><p>There is currently <strong>no official plugin or built-in support</strong> for Gemma in Android Studio.</p><p>However, you can still integrate Gemma into your Android app using three main approaches:</p><h3>🔹 Option 1: Using Gemma via Cloud API (Recommended)</h3><p>The easiest way to get started is by using a hosted AI model via API.</p><h3>How it works:</h3><ol><li>Host or access a Gemma model via a cloud provider</li><li>Call the API from your Android app</li><li>Display the response in your UI</li></ol><h3>Sample Kotlin Setup (Retrofit)</h3><pre>interface ApiService {<br>    @POST(&quot;v1/generate&quot;)<br>    suspend fun generateText(@Body request: RequestBody): Response&lt;ApiResponse&gt;<br>}</pre><h3>Pros:</h3><ul><li>Fast and simple integration</li><li>No device performance issues</li><li>Scalable</li></ul><h3>Cons:</h3><ul><li>Requires internet</li><li>Ongoing API cost</li></ul><p>👉 Best for: <strong>Production apps and quick prototypes</strong></p><h3>🔹 Option 2: Running Gemma On-Device (Offline AI)</h3><p>If your goal is offline functionality or better privacy, you can run Gemma locally on Android.</p><h3>Tools you can use:</h3><ul><li>TensorFlow Lite</li><li>ONNX Runtime</li><li>GGUF format with llama.cpp (Android port)</li></ul><h3>Steps:</h3><ol><li>Convert the Gemma model into a mobile-friendly format (.tflite or .gguf)</li><li>Bundle or download the model in your app</li><li>Run inference using a supported runtime</li></ol><h3>Challenges:</h3><ul><li>Large model size (hundreds of MBs)</li><li>High RAM/CPU requirements</li><li>Slower response times</li></ul><p>👉 Best for: <strong>Privacy-focused or offline-first apps</strong></p><h3>🔹 Option 3: Using Google AI SDKs (Gemini as Alternative)</h3><p>While Gemma is great for local inference, many developers prefer using Google’s hosted AI models for simplicity.</p><h3>Example:</h3><pre>val model = GenerativeModel(<br>    modelName = &quot;gemini-pro&quot;,<br>    apiKey = &quot;YOUR_API_KEY&quot;<br>)</pre><pre>val response = model.generateContent(&quot;Hello AI&quot;)</pre><h3>Why consider this?</h3><ul><li>Fully managed</li><li>Easy Android integration</li><li>No infrastructure required</li></ul><p>👉 Best for: <strong>Rapid development and feature-rich AI apps</strong></p><h3>⚖️ Gemma vs Cloud AI: Which One Should You Choose?</h3><p>- <strong>Offline AI</strong> → Gemma (on-device) <br>- <strong>Fast development</strong> → Cloud API <br>- <strong>High performance</strong> → Cloud models <br>- <strong>Privacy-first apps</strong> → Gemma (local)</p><h3>⚠️ Key Limitations to Keep in Mind</h3><ul><li>Gemma models are still <strong>resource-intensive for mobile devices</strong></li><li>Not all Android devices can handle on-device inference smoothly</li><li>Setup for local models is <strong>non-trivial and experimental</strong></li><li>No official Android SDK (yet)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f361549d557" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Will Kotlin Multiplatform (KMP) make Android/iOS Native development obsolete]]></title>
            <link>https://medium.com/@gaureshkambli31/will-kotlin-multiplatform-kmp-make-android-ios-development-obsolete-fdf302a3d408?source=rss-c7e79ada3543------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdf302a3d408</guid>
            <dc:creator><![CDATA[Gauresh Kambli]]></dc:creator>
            <pubDate>Thu, 10 Jul 2025 11:59:44 GMT</pubDate>
            <atom:updated>2025-07-16T09:18:49.036Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*p0GjLrJmyegy9iDE5wIxJg.png" /><figcaption>KMP v Android Development</figcaption></figure><p>I have been encountering this question a lot on internet and also from my fellow colleagues working with me on Kotlin. Especially if you’re a Native developer and hear about companies switching over to KMP.</p><p>Short answer to this is :</p><ul><li>No, Native Android won’t just become obsolete.</li><li>However… it is changing.</li></ul><p>Before getting to the detailed answer let’s just get to know something about KMP in short:</p><ol><li>KMP allows you to write shareable code in Kotlin language that can be used across <strong>multiple platforms </strong>such as Android, iOS, Web, Desktop, and Backend.</li><li>Unlike most other frameworks like Flutter, React Native which focuses mainly on UI, <strong>KMP</strong> focuses on creating <strong>Business Logic, Models, Database Handling</strong>, etc.</li></ol><p>For many years, companies didn’t had an alternative for native Android and iOS. <strong>Twice the developers, Twice the bandwidth and Twice the money</strong>.</p><p>Due to this, technologies like Flutter and React Native were born. They have become good enough that many companies are using it like Google, Alibaba, Airbnb, etc.</p><p>If KMP covers more than 70%-80% of the functionalities that your app has, then companies will go for it. This has many advantages:</p><ul><li>Cost Effectiveness</li><li>Time Saving</li><li>Less developers</li></ul><p>That means Native Android is shifting into a more specialised role. Most of the companies now need a decent working app and not the next big thing in app development.</p><p><strong>Whats in store for Android Devs:</strong></p><ul><li>KMP is so interesting that the learning curve for native Android devs is small.</li><li>You already know Kotlin very well. You know the Android tools, Compose. So with KMP, you just reuse it instead of making it obsolete.</li><li>You will still write native code, not all of it. Building robust UI, making platform specific features, lifecycle events, etc will be there forever.</li></ul><p><strong>Will Kotlin Multiplatform replace Native Android?</strong></p><ul><li>It will replace some part of Native Android.</li><li>It will take some of its market share as it lets you do almost the same thing, but in a cheaper and faster way.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdf302a3d408" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>