<?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 Daksh Semwal on Medium]]></title>
        <description><![CDATA[Stories by Daksh Semwal on Medium]]></description>
        <link>https://medium.com/@dakshsemwal_?source=rss-6634658b467c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oEG3T6O60XvY1roYI9pdvg.jpeg</url>
            <title>Stories by Daksh Semwal on Medium</title>
            <link>https://medium.com/@dakshsemwal_?source=rss-6634658b467c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 19:16:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dakshsemwal_/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[Keep Growing When AI Becomes Part of the Job]]></title>
            <link>https://medium.com/@dakshsemwal_/keep-growing-when-ai-becomes-part-of-the-job-016c69a9c88c?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/016c69a9c88c</guid>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 09:49:20 GMT</pubDate>
            <atom:updated>2026-11-17T10:21:49.605Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Building an Android Career in the AI Era · Part 5 of 5</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*drjSKf6Ntvc82Km8H6wEoQ.png" /><figcaption>Keep growing alongside your tools: investigate the behavior, explain the decision, and verify the result.</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_NomvzvYggk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_NomvzvYggk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_NomvzvYggk%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/881000eb70110daa73844ea2614959d8/href">https://medium.com/media/881000eb70110daa73844ea2614959d8/href</a></iframe><p>You finish a feature with an assistant open beside Android Studio. The screen looks right, the build passes, and the pull request is ready.</p><p>Before moving on, you try to explain one decision: why does this state belong in the ViewModel?</p><p>You remember the conversation that produced the implementation. Explaining the decision without reopening that conversation takes a little longer.</p><p>That’s a moment I’d pay attention to.</p><p>Throughout this series, we’ve looked at preparing for Android interviews, explaining decisions, debugging unfamiliar code, and assessing candidates when AI is available. For the final part, I want to return to everyday work.</p><p>An interview gives us a short window to demonstrate understanding. Our daily workflow determines how much understanding we have to draw on.</p><p>The question I keep coming back to is this: <strong>how do I use AI to get work done while continuing to develop my own judgment?</strong></p><p>I’d start with something small enough to repeat.</p><p>Before asking an assistant to implement a change, I’d write down what I think needs to happen. A few sentences would be enough: the expected behavior, where I believe the change belongs, and one thing I’m uncertain about.</p><p>For the product-search example from the previous parts, that might look like this:</p><blockquote><em>“Only the active search should update the screen. I suspect older requests can still publish results. I need to trace both successful responses and errors before choosing a fix.”</em></blockquote><p>That gives me an initial position to compare with whatever the assistant proposes. If its answer changes my mind, I can identify what changed it.</p><p>Without that step, I can read a convincing explanation and mistake recognition for understanding.</p><p>In Android work, I’d use the same approach for a component API, a navigation change, or a build failure. I don’t need a complete solution before using the tool. I want enough of my own reasoning on the page to participate in the decision.</p><p>From there, I’d give the assistant a bounded task.</p><p>“Review this search implementation for response-ordering problems” gives us a specific behavior to investigate. “Implement search” leaves more decisions implicit.</p><p>For a reusable component, I might ask it to inspect how callers control state, identify an inconsistent interaction, or propose tests for an agreed behavior. Those tasks still require me to read the surrounding code and decide whether the suggestion fits.</p><p>The boundary matters because I want to review a change I can hold in my head. If a suggestion introduces a new abstraction, changes state ownership, and rewrites the tests at once, I’d break it into smaller decisions before accepting it.</p><p>A useful check comes after the implementation.</p><p>I’d close the conversation and explain the change using the code, the observed behavior, and the verification results.</p><p>Where does the event enter? Who owns the state? What happens when the operation fails? Which observation tells me the fix worked?</p><p>If I struggle, I have a precise place to return to. Perhaps I haven’t understood the coroutine scope. Perhaps the test passes before the late response completes. Perhaps I accepted an abstraction whose purpose I can’t explain.</p><p>That gap becomes the next learning task.</p><p>I’d also keep some room for investigation before asking for an answer. When a bug appears, I can spend a few minutes reproducing it, forming a hypothesis, and choosing one check that could disprove it.</p><p>For the search bug, that check was controlling the order in which requests completed. For a UI issue, it might be changing font size or navigating away and back. For a build failure, it might be finding the first relevant error and tracing which task produced it.</p><p>Then I can bring the evidence to the assistant.</p><p>This gives me practice in deciding what information matters. It also makes the conversation more useful: we’re investigating an observed failure with a concrete starting point.</p><p>In design systems work, I’d apply that discipline beyond whether a component looks correct in one preview.</p><p>Consider a button with a loading state. The implementation may look straightforward until we discuss what loading means. Can the user activate it again? Should its width remain stable? What information should assistive technology receive? Who decides when loading ends?</p><p>Those questions shape the component’s contract.</p><p>An assistant can help explore possibilities and draft the implementation. I still need to agree on the behavior with the people using and designing the component, then check it in the relevant conditions.</p><p>That’s the kind of work I want to keep getting better at: making a requirement precise enough that we can implement it, discuss its tradeoffs, and verify the result.</p><p>I’d make that growth visible with a short weekly note.</p><p>One entry could record a decision I changed after investigation. Another could describe a generated suggestion I rejected and the evidence behind that choice. A third might capture something I still can’t explain confidently.</p><p>For example:</p><blockquote><em>“I initially thought comparing query text would prevent stale results. Tracing ‘shoe → shirt → shoe’ showed that two different requests could share the same query. I changed the approach and added a test that controlled completion order.”</em></blockquote><p>That note contains a useful story for an interview or a performance discussion. More immediately, it shows me what I learned.</p><p>I’d keep the claims proportional to the evidence. If I verified a behavior locally, I’d say that. If adoption or production impact remains unknown, I’d leave it unknown.</p><p>Over time, those notes can reveal where to go deeper. If I repeatedly struggle to explain cancellation, that deserves focused study. If component reviews keep exposing unclear state ownership, I can trace a few existing APIs and discuss their choices with a teammate.</p><p>I’d choose the next learning topic from those recurring gaps. Then I’d bring what I learned back into a real change, where I have to make a decision and live with its consequences.</p><p>That creates a practical rhythm: attempt, investigate, use the assistant, verify, explain, and reflect.</p><p>Some weeks, the learning will be modest. I may understand one failure path more clearly or write a test that reproduces a bug reliably. Those are useful gains. They become part of how I approach the next task.</p><p>At the end of this series, the standard I want to hold myself to is simple.</p><p>When I put my name on a change, I should be able to explain the behavior it provides, the decisions behind it, and the evidence I used to check it. I should also be able to say where my confidence ends.</p><p>AI can contribute throughout that work. My career keeps developing when I stay involved deeply enough to learn from it.</p><p>The next time an assistant helps me finish a feature, I want to leave with the feature working — and with one more decision I can explain on my own.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=016c69a9c88c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hiring Android Engineers When AI Can Write the Code]]></title>
            <link>https://medium.com/@dakshsemwal_/hiring-android-engineers-when-ai-can-write-the-code-5e6fe49612e5?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e6fe49612e5</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technical-interview]]></category>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 06:26:33 GMT</pubDate>
            <atom:updated>2026-11-17T09:31:52.964Z</atom:updated>
            <content:encoded><![CDATA[<p>Building an Android Career in the AI Era · Part 4 of 5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AO_pv-kbYiCrswZmuX_48g.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2436509808%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdaksh-semwal%2Fhiring-android-engineers-when%3Futm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing%26si%3D7f23d88ff0824f66be3058fb46487a00&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-CzGt7PBNOQlIFnHd-zk2k8w-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ed5a8a8f916d7af0cc622333ec6b942/href">https://medium.com/media/5ed5a8a8f916d7af0cc622333ec6b942/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPpx0rCD63RE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPpx0rCD63RE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPpx0rCD63RE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae836ba77ef2f1a5fa1ff282a74555a0/href">https://medium.com/media/ae836ba77ef2f1a5fa1ff282a74555a0/href</a></iframe><p>A candidate fixes the search bug in a few minutes. Their explanation sounds convincing. The tests pass.</p><p>Then you ask why the fix works when the user searches for “shoe,” switches to “shirt,” and searches for “shoe” again.</p><p>They pause.</p><p>That pause could mean several things. They might be tracing the sequence. They might have missed an edge case. They might be trying to understand code an assistant suggested.</p><p>As the interviewer, I’d want to give them room to work through it. Their next few steps could tell me more than the first answer did.</p><p>In <a href="https://medium.com/@dakshsemwal_/the-android-interview-explaining-decisions-debugging-code-and-using-ai-honestly-b36bb3577c7e">Part 3</a>, we approached this fictional interview from the candidate’s side. This time, I want to look at the person setting the exercise and asking the questions.</p><h3>Decide what you want to learn before choosing the exercise</h3><p>For an Android role, I’d start with a few concrete questions.</p><p>Can this person trace a user action through the app? Can they explain where state changes? Can they investigate a failure and check whether their fix addresses it?</p><p>For a senior role, I’d also want to understand how they choose scope, explain tradeoffs, and leave the next engineer with enough context to continue.</p><p>Those questions would shape the exercise. If I’m assessing debugging, I’d provide a small project that already runs. The candidate should have enough time to inspect the behavior, make a change, and verify it.</p><p>In my design systems work, I use a design agent to help interpret Figma intent, development tooling with architecture context, and a QA agent to help test components end to end. That workflow has helped me validate proofs of concept faster.</p><p>With that experience in mind, I’d want an interview to show how someone checks work produced with those tools.</p><h3>Make the rules clear before the round</h3><p>If AI is allowed, I’d tell the candidate in advance. I’d explain which tools they can use, what access the exercise provides, and what I expect them to discuss.</p><p>For this round, the instruction could be simple.</p><blockquote><em>“You can use the provided assistant and documentation. If you use the assistant, explain what it contributed and how you checked the result. We’ll discuss and modify the code together.”</em></blockquote><p>I’d give everyone taking this version of the exercise the same starter project and tool access. A setup check before the interview would help avoid spending the round on a broken build.</p><p>If the round includes a section without an assistant, I’d explain its purpose and duration beforehand too.</p><h3>Give the candidate a bug they can investigate</h3><p>I’d reuse the product-search example from Part 3.</p><p>The app has a search field and a result list. Search for “shoe,” then change the query to “shirt.” If the responses arrive in the wrong order, shoes replace the shirts while the input still says “shirt.”</p><p>The starter project would include a fake repository that lets us control when each response completes. Both of us could reproduce the failure without relying on a slow network.</p><p>For a 60-minute round, I’d plan roughly five minutes for context, ten for investigation, twenty for a fix, fifteen for verification and a follow-up, and ten for the handoff and the candidate’s questions.</p><p>I’d share that plan so they can decide how to spend their time.</p><h3>Follow their reasoning through the implementation</h3><p>Suppose the candidate adds a request ID and checks it before applying a result.</p><p>I’d ask them to trace the original failure through the updated code. Where does the ID change? Where is it checked? What happens when an older request finishes?</p><p>Then I’d ask one follow-up based on what they implemented.</p><p>If they compare query text, we can try “shoe,” “shirt,” then “shoe” again. If they guard successful results, we can inspect what happens when an older request returns an error. If they rely on cancellation, we can check how this repository handles a completion from cancelled work.</p><p>I’d evaluate the behavior their solution provides. They might use the existing search pipeline successfully without adding an explicit request ID.</p><p>The question I need answered is whether an earlier operation can still change the screen after a newer search becomes active, under the behavior we agreed on.</p><h3>Ask them to show the test</h3><p>When a candidate says they would add a unit test, I’d ask which sequence they want it to exercise.</p><p>For this bug, they could start both searches, complete the second one first, then complete the first one. The assertion should check that the second search’s results remain visible.</p><p>If time allows, I’d ask them to run the test against the original behavior. A failure there helps us see whether the test captures the bug we’re discussing.</p><p>If they run out of time, I’d record what they actually completed. A clear test plan gives me some evidence. An implemented test that demonstrates the failure and passes with the fix gives me more.</p><h3>Give them a moment to read</h3><p>I’d ask candidates to explain their decisions, while also leaving space for them to concentrate.</p><p>Someone might need a quiet minute to read the ViewModel or trace a callback. I can ask for their observations once they’ve had that time.</p><p>If they get stuck, I’d use a small hint and note it. For example, “Could we check whether both requests can still update the same state?”</p><p>That lets the session continue. Afterwards, I can distinguish what they found independently from what they worked out with help.</p><h3>Record what happened while it’s fresh</h3><p>My notes would describe actions I could point to.</p><ul><li>Reproduced the failure by controlling response order.</li><li>Traced the query from input to repository and back to UI state.</li><li>Explained the proposed fix through a concrete sequence.</li><li>Checked the error path after a prompt.</li><li>Used an assistant to suggest a test, then corrected an assertion that passed too early.</li></ul><p>I’d use the same assessment areas across candidates and calibrate expectations to the role. I’d also leave room for “not observed.” If we spent the round debugging search, I’d need another exercise or conversation to assess accessibility or broader architecture decisions.</p><h3>Finish with an honest handoff</h3><p>Before closing, I’d ask the candidate to summarise what changed, what they verified, and what they’d do next.</p><p>Then I’d explain the remaining interview process and leave time for their questions.</p><p>For me, an AI-assisted exercise would be successful if I could explain my assessment using specific moments from the session. I’d know how the candidate investigated the bug, which decisions they understood, and how they checked the result.</p><p>In Part 5, I’ll bring the series back to everyday Android work and look at how to keep developing those skills while AI becomes part of the workflow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e6fe49612e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Android Interview: Explaining Decisions, Debugging Code, and Using AI Honestly]]></title>
            <link>https://medium.com/@dakshsemwal_/the-android-interview-explaining-decisions-debugging-code-and-using-ai-honestly-b36bb3577c7e?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b36bb3577c7e</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 20:11:11 GMT</pubDate>
            <atom:updated>2026-11-17T09:31:25.547Z</atom:updated>
            <content:encoded><![CDATA[<p>Building an Android Career in the AI Era · Part 3 of 5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ccy-xhsFDrBSvRl6FO9efg.png" /><figcaption>The mock interview starts with a search bug. The query says “shirt,” but an older response puts shoes back on screen.</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2433215997%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdaksh-semwal%2Fdebugging-a-race-condition-in%3Futm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing%26si%3D36c565df9a574c0ab983cc345b5812d8&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-eCfbxha5calfyjyC-sp75OA-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/2cd7b3ce9f24e74adcc38610291007c8/href">https://medium.com/media/2cd7b3ce9f24e74adcc38610291007c8/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5SdCROjBxgg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5SdCROjBxgg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5SdCROjBxgg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3018118aabc2b8d65bf030ccda60d006/href">https://medium.com/media/3018118aabc2b8d65bf030ccda60d006/href</a></iframe><p>You open a product-search app for a live Android interview. The screen has a search field, a loading indicator, and a list of products. You type “shoe,” then quickly replace it with “shirt.” The shirt results appear. A moment later, the list switches back to shoes while the search field still says “shirt.”</p><p>The interviewer asks what you’d do next.</p><p>It’s tempting to reach for a familiar fix. I’d start by saying what I can see, what I suspect, and what I’d check to tell the difference. That gives the interviewer something concrete to follow, even while I’m still figuring it out.</p><p>In <a href="https://medium.com/@dakshsemwal_/preparing-for-android-interviews-when-ai-can-answer-the-questions-35227fe07b7b">Part 2</a>, we used product search as a project to prepare for Android interviews. This time, let’s take that same feature into a fictional interview and walk through what I’d say, what I’d check, and how I’d spend the time.</p><h3>Start by agreeing on what the screen should do</h3><p><strong>Interviewer:</strong> You have 35 minutes. Search mostly works, but the team is getting reports of incorrect results. Where would you start?</p><p><strong>Candidate:</strong> “When the query changes, should we keep the previous results visible while the next request runs? And should clearing the field also clear the list?”</p><p>I’d ask because each answer changes what counts as a bug. Keeping old results visible during loading could be a deliberate product choice. Letting an older response overwrite the results for the current query is a separate issue.</p><p>Suppose the interviewer says the results can stay visible while loading, but only the latest search should be allowed to update the screen. Now I have a clear target. I’d reproduce the issue first, trace the state updates, and reserve time for one regression test. If the assignment also asks for pagination and polish, I’d say which work I’m prioritizing and check that we agree.</p><h3>Debug out loud, one observation at a time</h3><p><strong>Interviewer:</strong> What do you think is happening?</p><p><strong>Candidate:</strong> “The input still says ‘shirt,’ so I’d check where the result list gets updated. My first hypothesis is that both requests can write to the same UI state. I’d log when each request starts, when it finishes, and when its result is applied.”</p><p>With a controlled delay, the timeline might look like this.</p><ol><li>Request A starts for “shoe.”</li><li>Request B starts for “shirt.”</li><li>Request B completes and the screen shows shirts.</li><li>Request A completes and overwrites the list with shoes.</li></ol><p>Once I see that order, I can point to the failure. The earlier request still has permission to publish a result after a newer one starts.</p><p>This is the point where I’d open the ViewModel or whichever part of the app owns search state. I’d trace the query from the text field to the repository and follow the response back to the screen. I’d say what I’m looking for, then take a quiet moment to read the code.</p><h3>Explain the smallest change you can defend</h3><p><strong>Interviewer:</strong> How would you fix it?</p><p><strong>Candidate:</strong> “In this implementation, I’d give each search a request ID and update the screen only if the response belongs to the active request. I’d use the same check for errors, so a slow failure from an earlier search can’t replace successful results for the current one.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b36bb3577c7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preparing for Android Interviews When AI Can Answer the Questions]]></title>
            <link>https://medium.com/@dakshsemwal_/preparing-for-android-interviews-when-ai-can-answer-the-questions-35227fe07b7b?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/35227fe07b7b</guid>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Sun, 01 Nov 2026 14:03:16 GMT</pubDate>
            <atom:updated>2026-11-01T15:25:19.557Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Building an Android Career in the AI Era · Part 2 of 5</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mPLJai-pnH12wWypYFj8fw.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2430283887%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdaksh-semwal%2Fandroid-interview-prep-ai-era-part-2%3Futm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing%26si%3D5c32b8f2c40a4dbf8ac10b784b8903d6&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-qyLsEK3UOQppQIJp-h5PVYw-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/6dfc4e76e79006c076c184468cccba8a/href">https://medium.com/media/6dfc4e76e79006c076c184468cccba8a/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWxCC8lzS3p0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWxCC8lzS3p0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWxCC8lzS3p0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee1e5ce22884b9501065f5c0a5c6f9eb/href">https://medium.com/media/ee1e5ce22884b9501065f5c0a5c6f9eb/href</a></iframe><p>You ask an AI assistant an Android interview question. It gives you a clear answer, a Kotlin example, and a few follow-up questions. You read it and think, “Yes, I know this.”</p><p>Then you close the chat and try to explain it yourself.</p><p>That is a useful moment to pay attention to. Recognising a good explanation and producing one are different skills. Interview preparation needs room for both.</p><p>In Part 1, I wrote about using design, development, and QA agents in my work as an Android design systems engineer. That setup helps me get to a component or a proof of concept faster. It also makes me think carefully about what I understand well enough to review.</p><p>The same question comes up when preparing for interviews. How do you use AI to learn without letting a convincing answer hide the gaps?</p><p>Here is the approach I would take. It is a four-week structure you can adapt to your experience and the interviews you are actually facing.</p><h3>Find out what you are preparing for</h3><p>Before making a study plan, ask the recruiter about the process.</p><p>Will you write Kotlin in a shared editor or work inside Android Studio? Is there an algorithms round? Will you review existing code, build a small feature, or discuss system design? Are documentation and AI tools allowed?</p><p>Get the AI policy explicitly. Being comfortable with agents at work does not tell you what a particular interview permits.</p><p>The role matters too. For a design systems role, I would expect component APIs, accessibility, theming, and compatibility to be relevant discussion areas. A role focused on another part of Android may need a different emphasis. Use the job description and recruiter conversation to decide where your preparation time should go.</p><p>Then do one short baseline exercise. Choose a feature, sketch its approach, implement a small part, and explain your decisions aloud. Write down where you struggled. That list will be more useful than a generic collection of two hundred questions.</p><h3>Use one small feature throughout the month</h3><p>I would use a product-search screen with an input, a repository, and a list of results.</p><p>Keep the visual design simple. The feature should be small enough that you can spend time on its behaviour: overlapping requests, loading and error states, screen recreation, and testing.</p><p>Reusing the same feature makes changes easier to reason about. You already know what the code does, so a new requirement gives you a focused problem to solve.</p><p>For each session, work through this sequence:</p><ol><li>Attempt the problem yourself and write down your assumptions.</li><li>Run the code or check the relevant documentation.</li><li>Use AI to question your approach or suggest another case.</li><li>Explain the result without reading the AI response.</li></ol><p>Keep a short note of what changed in your understanding. A few sentences are enough.</p><h3>Week 1: Kotlin, coroutines, and following the execution</h3><p>Start with the language and asynchronous behaviour you will need to discuss comfortably.</p><p>Practise collections, nullability, equality, and modelling state. For coroutines and Flow, focus on scopes, cancellation, errors, and what happens when work overlaps.</p><p>Use the search screen to make the questions concrete. The user searches for “shoe,” then “shirt.” The first request takes longer and finishes last. What prevents it from replacing the shirt results?</p><p>Write down the expected sequence before running it. Then use a fake repository with controllable responses to reproduce the ordering. Debouncing can reduce the number of requests, but you still need to reason about which result is allowed to update the screen.</p><p>I would organise the week like this:</p><p><strong>Session 1: Transform a product list using Kotlin collections.</strong></p><p><strong>Check:</strong> Empty input, duplicates, and ordering.</p><p><strong>Explain aloud:</strong> Which operations allocate or change the result order?</p><p><strong>Session 2: Model loading, results, and errors.</strong></p><p><strong>Check:</strong> Whether the model permits confusing combinations.</p><p><strong>Explain aloud:</strong> Which states can coexist, and why?</p><p><strong>Session 3: Start work in a coroutine scope and cancel it.</strong></p><p><strong>Check:</strong> What actually stops and what continues.</p><p><strong>Explain aloud:</strong> Who owns the work and its lifetime?</p><p><strong>Session 4: Reproduce out-of-order search responses.</strong></p><p><strong>Check:</strong> An old response cannot replace the current results.</p><p><strong>Explain aloud:</strong> Where is that rule enforced?</p><p><strong>Session 5: Fix a small asynchronous bug without AI.</strong></p><p><strong>Check:</strong> A reproduction that fails before the fix.</p><p><strong>Explain aloud:</strong> What caused it, and why does the fix address it?</p><p>After a session, ask AI to challenge your explanation. “What assumption have I made about cancellation?” is a useful prompt. Check the answer against the code and documentation before adopting it.</p><h3>Week 2: Compose, state, and lifecycle</h3><p>Now put the search behaviour into a UI.</p><p>Decide where the query, results, and temporary UI state belong. Separate a reusable search input from the screen that loads products. Be ready to explain that boundary.</p><p>This is a familiar concern in design systems: how much should a component know about the feature using it? A search input that requires a particular screen ViewModel can be awkward to reuse. Consider what values and callbacks would give its caller enough control.</p><p><strong>Session 1: Build a reusable search input.</strong></p><p><strong>Check:</strong> A caller can control its value and handle changes.</p><p><strong>Explain aloud:</strong> What belongs in the component API?</p><p><strong>Session 2: Connect the screen to its state holder.</strong></p><p><strong>Check:</strong> The UI reflects loading, results, and failure.</p><p><strong>Explain aloud:</strong> How do actions become new state?</p><p><strong>Session 3: Review an effect and its keys.</strong></p><p><strong>Check:</strong> What happens when inputs change or the UI leaves composition.</p><p><strong>Explain aloud:</strong> Why is the effect located here?</p><p><strong>Session 4: Recreate the screen and test state restoration.</strong></p><p><strong>Check:</strong> Which values survive each scenario you test.</p><p><strong>Explain aloud:</strong> What belongs in saved state or persistent storage?</p><p><strong>Session 5: Try large text, TalkBack, and a narrow layout.</strong></p><p><strong>Check:</strong> Labels, focus order, clipping, and usable controls.</p><p><strong>Explain aloud:</strong> Which problems did the preview miss?</p><p>Treat a configuration change and process recreation as separate cases. Passing one check does not establish the behaviour of the other.</p><p>If the target role works with Views or a mixed codebase, include the relevant lifecycle and interoperability questions here. Prepare for the system you may maintain.</p><h3>Week 3: Debugging, testing, and system design</h3><p>This week, spend time with deliberately broken code.</p><p>A useful debugging explanation starts with the observation, then a hypothesis, then a check. Practise that sequence before changing anything. It helps you avoid guessing and makes your reasoning easier for someone else to follow.</p><p><strong>Session 1: Investigate a stale-result bug from a reproduction.</strong></p><p><strong>Check:</strong> Logs or controlled inputs support the suspected cause.</p><p><strong>Explain aloud:</strong> What evidence ruled out another explanation?</p><p><strong>Session 2: Test the fix with a fake repository.</strong></p><p><strong>Check:</strong> The test fails with the broken behaviour restored.</p><p><strong>Explain aloud:</strong> Which requirement does the assertion protect?</p><p><strong>Session 3: Investigate one slow interaction.</strong></p><p><strong>Check:</strong> Use an appropriate measurement or profiler before changing code.</p><p><strong>Explain aloud:</strong> What did you measure, and what remains uncertain?</p><p><strong>Session 4: Design an offline search experience.</strong></p><p><strong>Check:</strong> Define what happens with cached, missing, or stale data.</p><p><strong>Explain aloud:</strong> What trade-off does the user experience?</p><p><strong>Session 5: Review the feature as a whole.</strong></p><p><strong>Check:</strong> Look for a meaningful untested failure or accessibility issue.</p><p><strong>Explain aloud:</strong> Which improvement would you prioritise next?</p><p>For system design, start by asking about requirements. What data is available offline? How fresh must it be? How large is the catalogue? Who owns search ranking?</p><p>Those answers should influence the design. Practise discussing data flow, cache policy, errors, observability, and rollout before drawing a large set of modules.</p><p>AI can help propose failure scenarios for this exercise. Decide which ones are plausible and important for the requirements you were given.</p><h3>Week 4: Put your preparation under interview conditions</h3><p>By this point, you should have several things to discuss: a component, a reproduced bug, a targeted test, an accessibility check, and a design decision.</p><p>Use the final week to practise explaining them within a time limit.</p><p><strong>Session 1: Run a timed coding exercise using the target interview’s tool rules.</strong></p><p><strong>Check:</strong> A small working solution and relevant edge cases.</p><p><strong>Explain aloud:</strong> Requirements, approach, and limitations.</p><p><strong>Session 2: Run a debugging mock.</strong></p><p><strong>Check:</strong> You investigate before making speculative changes.</p><p><strong>Explain aloud:</strong> Your hypothesis and the evidence for it.</p><p><strong>Session 3: Run a system-design mock with changed requirements.</strong></p><p><strong>Check:</strong> You revise decisions when the constraints change.</p><p><strong>Explain aloud:</strong> Why the original approach needs adjustment.</p><p><strong>Session 4: Rehearse three real project stories.</strong></p><p><strong>Check:</strong> Your contribution and outcome are accurate.</p><p><strong>Explain aloud:</strong> One difficult decision and what you learned.</p><p><strong>Session 5: Repeat the weakest exercise from the week.</strong></p><p><strong>Check:</strong> Whether the specific gap has improved.</p><p><strong>Explain aloud:</strong> The part you previously struggled to explain.</p><p>For project stories, I would prepare one about a difficult technical decision, one about a bug or failed approach, and one about collaboration.</p><p>Keep the detail concrete. What was your responsibility? What alternatives did you consider? How did you verify the result? If you have a measured outcome, use it. If you do not, explain the outcome without attaching a made-up percentage.</p><p>A component API discussion can be a strong story. So can finding out that a POC answered the wrong question. Choose examples you can discuss openly and in depth.</p><h3>Make room for the rounds your target company uses</h3><p>This plan is a starting point. If the interview includes data structures and algorithms, give those exercises their own regular sessions. Practise writing and testing solutions in the expected language, explaining complexity, and recognising edge cases.</p><p>For junior roles, keep the feature small and spend more time implementing and tracing its behaviour. For senior roles, add questions about migration, compatibility, ownership, and how a change reaches users safely.</p><p>If you only have thirty minutes, use roughly twenty for the exercise and ten to check and explain it. Spread the sessions over more weeks. Finishing the calendar is less useful than understanding the problems you worked through.</p><h3>Keep AI useful during preparation</h3><p>I would give an assistant a narrow job:</p><blockquote><em>Act as an interviewer. Ask one question about this implementation at a time. Wait for my answer. Challenge an assumption before showing a solution. At the end, identify the areas I should investigate myself.</em></blockquote><p>You can also ask it to review your explanation for missing steps or generate a changed requirement. Avoid treating its score as proof that you are ready. The stronger check is whether you can solve a variation, explain the behaviour, and verify it yourself.</p><p>Keep employer code and private project details out of practice prompts. A small synthetic example is usually enough to explore the technical problem.</p><h3>What I would want to leave the month with</h3><p>I would want a small codebase I understand, a few failures I can reproduce, and three project stories I can explain clearly. I would also want a shorter list of gaps than I started with, with enough detail to keep working on them.</p><p>That gives me something concrete to bring into an interview. When the question changes, I have a way to work through it.</p><p>In the next part, we will look at the interview itself: clarifying an incomplete assignment, explaining decisions as you code, handling an unfamiliar question, and using AI honestly when it is allowed.</p><p><strong>Next: Part 3 — The Android Interview: Explaining Decisions, Debugging Code, and Using AI Honestly.</strong></p><p><a href="https://medium.com/@dakshsemwal_/ai-has-changed-how-i-build-android-components-how-should-i-grow-from-here-f9d0b5f0b7de">Read Part 1: AI Has Changed How I Build Android Components. How Should I Grow From Here?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35227fe07b7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Has Changed How I Build Android Components. How Should I Grow From Here?]]></title>
            <link>https://medium.com/@dakshsemwal_/ai-has-changed-how-i-build-android-components-how-should-i-grow-from-here-f9d0b5f0b7de?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9d0b5f0b7de</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 17:20:20 GMT</pubDate>
            <atom:updated>2026-10-30T05:44:38.270Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Building an Android Career in the AI Era · Part 1 of 5</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CYiRyljJQ2rTsll-VlW0TA.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F2428802910%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fdaksh-semwal%2Fandroid-career-ai-era-part-1%3Futm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing%26si%3De75622fdfd864ca8a1640af025923827&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-3AluJStaAJIUQ1er-dF997w-t500x500.jpg&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd0a9913e0533df32bc11fc7594b0efb/href">https://medium.com/media/dd0a9913e0533df32bc11fc7594b0efb/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWcZy6xnTsKs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWcZy6xnTsKs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWcZy6xnTsKs%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/19fae5eb79804f35cde052ab060ced8f/href">https://medium.com/media/19fae5eb79804f35cde052ab060ced8f/href</a></iframe><p>My experience with design, development, and QA agents and the questions it raises about learning and interviewing.</p><p>AI is already involved in several parts of my work as an Android design systems engineer.</p><p>I use a design agent that helps interpret intent from Figma, a development agent that has context about our architecture, and a small QA agent that helps test components end to end. I also work on proof of concepts from time to time, and this setup has helped me validate ideas much faster.</p><p>That has been useful in a very practical way: I can get to something concrete sooner and evaluate it.</p><p>It has also made me think about my career. When I can get help interpreting a design, implementing a component, and testing the result, where should I put my effort as an engineer? What should someone entering Android development learn? And when we interview a developer, what are we actually trying to find out?</p><p>I want to explore those questions through this series, starting with what has changed in my own workflow.</p><h3>From Figma intent to a reusable component</h3><p>In a design system, a component has a life beyond the screen where it first appears. Other developers need to use it in situations that may look quite different from the original design.</p><p>Take an input field. The visual design gives us a starting point, but the implementation also needs decisions about state, validation, error messages, and how much control the consuming application should have.</p><p>Who owns the value? When should an error appear? What should a screen reader announce? Can the same API support the different places where teams will use it?</p><p>These questions shape the component as much as its appearance does.</p><p>The design agent helps with interpreting Figma intent. The development agent brings architectural context into implementation. The QA agent helps me exercise the result. Having that support across the workflow means I can reach a reviewable component sooner.</p><p>I still need to judge whether we have understood the requirement and whether the result belongs in the library.</p><p>That is where I see a valuable place to develop my skills: understanding the decisions well enough to guide the work and challenge the outcome.</p><h3>Faster POCs give me a shorter feedback loop</h3><p>The benefit is especially noticeable in proof-of-concept work.</p><p>A POC gives us something to examine. It can help answer whether an interaction makes sense, whether an integration seems feasible, or whether an approach deserves more time. Getting there sooner means the idea can be evaluated sooner.</p><p>But the question being evaluated needs to be clear. A working interaction can demonstrate one part of an idea while leaving accessibility, failure handling, compatibility, or long-term maintenance unresolved.</p><p>I think that distinction is worth practising explicitly: what have we learned from this prototype, and what do we still need to establish?</p><p>Otherwise, it is easy to let the quality of the demo stand in for the quality of the evidence.</p><h3>Context is part of the engineering work</h3><p>An architecture-aware development agent needs useful context to work with. That makes the way we describe our system worth paying attention to.</p><p>For a reusable component, useful context might include existing API conventions, ownership of state, design tokens, examples of similar components, and expectations for testing. A Figma frame alone cannot communicate every constraint in the codebase.</p><p>This gives me another way to think about engineering knowledge. Can I explain the architecture clearly enough to guide a change? Can I identify which existing component is a good reference and why? Can I spot when a locally reasonable solution creates inconsistency across the library?</p><p>Those are useful abilities when working with another engineer, too. AI gives me another reason to make that knowledge explicit.</p><h3>I still need to understand the code I accept</h3><p>There is a learning trap here: I can recognise code that looks familiar without being able to explain its behaviour.</p><p>For example, I might understand what a Compose effect appears to do, but struggle to explain when it restarts or what happens when the composable leaves the composition. That gap matters when the behaviour is wrong and I need to investigate it.</p><p>My approach to learning would be to take a small piece of generated code and ask myself three questions:</p><ol><li>Can I explain why this implementation works?</li><li>Can I describe a realistic case where it might fail?</li><li>Can I verify that case independently?</li></ol><p>If I cannot answer, I have found something specific to study. That could mean tracing coroutine cancellation, experimenting with state restoration, or checking how a component behaves with TalkBack and a larger font size.</p><p>Google’s guidance for Gemini in Android Studio also asks developers to validate generated output and test code before relying on it.[1] For me, that is a useful learning standard as well as a review standard.</p><h3>A QA agent needs a clear expectation</h3><p>Having a QA agent in the workflow helps with testing, but it also brings the definition of correctness into focus.</p><p>Suppose an input displays an error exactly as the implementation expects. A test confirms that behaviour. We still need to establish whether the timing of the error is appropriate and whether the message is accessible.</p><p>If the implementation and its tests share the same mistaken assumption, a passing test can leave the original problem untouched.</p><p>I want the requirement to provide an independent reference for review. What should the user experience? What observable behaviour would demonstrate that? Which cases could expose a mistake?</p><p>The ability to ask those questions is something I would encourage Android developers to practise alongside writing code.</p><h3>This changes what I want to discuss in an interview</h3><p>My workflow has made me more interested in how a developer reaches and evaluates a solution.</p><p>For candidates, I think that means preparing to discuss actual decisions: a requirement you clarified, an implementation you changed, a bug you investigated, or an AI suggestion you rejected. A concrete explanation gives the interviewer something to examine.</p><p>For interviewers, I would like to see more opportunities to observe that reasoning. Give a candidate a small component and ask them to review it. Change a requirement. Ask what they would test and why. Where AI assistance is permitted, explore how they assess its output.</p><p>That is my proposed direction for interviews. The details should fit the role and the rules of the hiring process. Later in this series, I will look at both sides: preparing as a candidate and designing an interview as an engineer.</p><h3>Where I want to go from here</h3><p>My experience so far is that AI helps me get to implementation and validation faster. That makes me want to become better at choosing what to build, describing its constraints, and assessing the result.</p><p>For someone learning Android, I would start with one small component. Build it, explain its behaviour, change a requirement, and investigate what breaks. Use AI during part of that process, and spend some time reasoning through it yourself.</p><p>Keep a record of the decisions. You will have something useful to revisit when learning, reviewing work, or preparing for an interview.</p><p>That is the thread I want to follow through this series: how we grow as Android engineers while the way we build keeps changing.</p><p><strong>Next: Preparing for Android Interviews When AI Can Answer the Questions.</strong> A practical preparation plan covering Kotlin, coroutines, Compose, debugging, system design, and explaining your work.</p><h3>Reference</h3><ol><li><a href="https://developer.android.com/studio/gemini/faq">Gemini in Android Studio FAQ</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9d0b5f0b7de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fabric Prism: Building a Realistic Component Lab with Compose Multiplatform]]></title>
            <link>https://medium.com/@dakshsemwal_/fabric-prism-building-a-realistic-component-lab-with-compose-multiplatform-f7818f8356f0?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7818f8356f0</guid>
            <category><![CDATA[kotlin-multiplatform]]></category>
            <category><![CDATA[compose-multiplatform]]></category>
            <category><![CDATA[design-sytem]]></category>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Sun, 03 May 2026 19:17:15 GMT</pubDate>
            <atom:updated>2026-05-03T19:39:56.009Z</atom:updated>
            <content:encoded><![CDATA[<p><em>An internal experiment in making design system components feel closer to the platforms they are meant to live on — while also making testing and review faster without always releasing a new library version or Showkase app to BrowserStack.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H4fgPaUhlEzj0KgUFj40HA.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPjWwkyeI6m8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPjWwkyeI6m8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPjWwkyeI6m8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1dae27fb5e750c4e97de51a3c32b2c2/href">https://medium.com/media/f1dae27fb5e750c4e97de51a3c32b2c2/href</a></iframe><p>If you work with design systems long enough, you eventually run into the same problem:</p><p><strong>Static previews are not enough.</strong></p><p>A button can look perfect in isolation and still feel wrong inside a real screen.<br>A dialog can match the design spec and still break when content gets longer.<br>A bottom sheet can look fine in a component gallery but behave nothing like the platform pattern it is trying to represent.</p><p>That gap between <strong>component preview</strong> and <strong>real product behavior</strong> is what made me start experimenting with a small internal project called <strong>Fabric Prism</strong>.</p><p>Fabric Prism is not an official product, framework, or replacement for existing tooling. It started as a hobby project and technical exploration:</p><blockquote><em>What would a Storybook-like experience look like if it was built with Compose Multiplatform, shipped to the browser with Kotlin/Wasm, and wrapped components inside realistic Android and iOS device previews?</em></blockquote><p>The result is a browser-based component lab where I can preview components, switch between Android and iOS modes, tweak live controls, and review platform-specific behavior without always needing to release a new version of the component library or push a Showkase app build to BrowserStack.</p><h3>Why I Started Building Fabric Prism</h3><p>Most component galleries are great for answering one question:</p><blockquote><em>“What does this component look like?”</em></blockquote><p>But design system work often needs to answer something deeper:</p><blockquote><em>“How does this component behave in context?”</em></blockquote><p>That difference matters.</p><p>Components are rarely used in perfect isolation. They live inside screens, forms, modals, bottom sheets, navigation flows, and platform-specific interaction models.</p><p>In our normal workflow, testing these changes can sometimes require a full loop:</p><ol><li>update the component</li><li>release or consume a new version of the library</li><li>update the Showkase app</li><li>build the app</li><li>upload or test it on BrowserStack</li><li>review the behavior on device</li></ol><p>That flow is important for final validation, but it can be heavy for early experimentation.</p><p>Sometimes I just want to answer a simple question quickly:</p><blockquote><em>“Does this dialog still feel right if the title is longer?”<br>“How does this bottom sheet behave on iOS compared to Android?”<br>“What happens if the button text wraps?”<br>“Can I show this interaction to someone without asking them to install a build?”</em></blockquote><p>Fabric Prism came from that need.</p><p>It is not meant to replace real device testing.<br>It is meant to make the early feedback loop much faster.</p><h3>Why the Name “Fabric Prism”?</h3><p>A prism lets you look at the same thing from different angles.</p><p>That felt like the right metaphor for this project.</p><p>A component can be viewed through different lenses:</p><ul><li>Android</li><li>iOS</li><li>Default state</li><li>Edge-case state</li><li>Long content</li><li>Disabled state</li><li>Loading state</li><li>Modal presentation</li><li>Compact layout</li></ul><p>Fabric Prism is about making those different perspectives visible in one place.</p><p>Not as screenshots.<br>Not as static documentation.<br>But as interactive previews.</p><h3>What Fabric Prism Is</h3><p>At a high level, Fabric Prism is a <strong>Compose Multiplatform web app</strong> powered by <strong>Kotlin/Wasm</strong>.</p><p>It behaves like a lightweight Storybook runtime for component experimentation.</p><p>The app:</p><ol><li>Boots through a small Wasm entry point</li><li>Renders a responsive Storybook-style shell</li><li>Maintains component and control state centrally</li><li>Routes selected components to their matching stories</li><li>Simulates Android and iOS previews inside a custom device frame</li><li>Exposes live controls for testing different states</li><li>Can be deployed as a static web artifact</li></ol><p>The goal is not to create a perfect emulator.</p><p>The goal is to create something realistic enough to expose layout, interaction, and platform-presentation issues earlier.</p><h3>The App Starts Small</h3><p>The entry point is intentionally tiny:</p><pre>@OptIn(ExperimentalComposeUiApi::class)<br>fun main() {<br>    ComposeViewport {<br>        FabricPrismApp()<br>    }<br>}</pre><p>That small bootstrap lets the browser host a full Compose UI tree through ComposeViewport.</p><p>From there, the rest of the experience is built like a normal Compose application:</p><ul><li>Shell</li><li>State</li><li>Navigation</li><li>Controls</li><li>Preview area</li><li>Story renderers</li></ul><p>This was one of the most interesting parts of the experiment for me.</p><p>The same mental model I use for app UI can also be used to build tooling UI.</p><h3>A Storybook Shell Built for Real Usage</h3><p>Fabric Prism uses a three-panel layout on larger screens:</p><ul><li>Left side: component navigation</li><li>Center: device preview area</li><li>Right side: live controls</li></ul><p>On smaller screens, the layout adapts:</p><ul><li>Navigation becomes a slide-in panel</li><li>Controls move into a modal bottom sheet</li><li>Preview takes focus</li></ul><p>That made the tool itself responsive, not just the components inside it.</p><p>One detail I liked while building this is that the compact controls panel can use the same kind of bottom sheet pattern that the design system itself exposes.</p><p>That means the lab is not only showcasing components.</p><p>It is also quietly dogfooding the same UI ideas.</p><h3>The Testing Problem This Helps With</h3><p>For design system work, testing is not only about checking whether the code compiles.</p><p>A lot of quality comes from visual and behavioral review:</p><ul><li>Does the component still align with design?</li><li>Does the spacing feel right?</li><li>Does it behave correctly in different states?</li><li>Does the Android version still feel Android?</li><li>Does the iOS version still feel iOS?</li><li>Does the component survive long text, different sizes, and edge cases?</li></ul><p>Traditionally, these checks often happen through a sample app or Showkase-style app.</p><p>That is useful, but it can become slow when every small change requires a new build, a new version, or device-cloud testing.</p><p>Fabric Prism helps by shifting some of that validation earlier into the browser.</p><p>Instead of waiting for the full release-and-test cycle, I can open the component in Fabric Prism, change controls live, switch platform, and inspect the behavior quickly.</p><p>The final validation can still happen on real devices or BrowserStack.</p><p>But many early issues can be caught before reaching that stage.</p><h3>Faster Feedback Without Releasing Every Time</h3><p>This is one of the biggest practical benefits.</p><p>With Fabric Prism, the feedback loop becomes lighter:</p><pre>Change component → Open browser preview → Adjust controls → Review behavior</pre><p>Instead of:</p><pre>Change component → Release library → Update Showkase app → Build app → Upload to BrowserStack → Review</pre><p>That does not mean the second flow disappears.</p><p>It simply means not every small design-system experiment has to go through the full heavy path immediately.</p><p>For an internal hobby project, that is exactly the kind of improvement I wanted to explore.</p><p>Not replacing production validation.<br>Just making the early design and development loop faster.</p><h3>State: Centralized, But Split Into Useful Slices</h3><p>A component lab can become noisy very quickly.</p><p>If every control update causes every part of the UI to recompose, the experience becomes harder to reason about and less scalable.</p><p>So Fabric Prism uses a central store backed by state flows, while exposing smaller flows for specific pieces of UI state.</p><p>For example:</p><ul><li>context state</li><li>alert dialog state</li><li>modal bottom sheet state</li><li>button state</li><li>checkbox state</li><li>table state</li></ul><p>Each story collects only the state it needs.</p><p>That gives the project a simple balance:</p><ul><li>one source of truth</li><li>focused recomposition</li><li>story-specific control handling</li><li>easier extension over time</li></ul><p>For an experimental internal project, this was a useful architecture choice because it kept the system flexible without making it feel over-engineered.</p><h3>Context Drives the Whole Runtime</h3><p>The most important model in Fabric Prism is the current context:</p><pre>data class Context(<br>    val component: String,<br>    val platform: String,<br>    val story: String = &quot;default&quot;,<br>)</pre><p>This small object controls three things:</p><ul><li>Which component is selected</li><li>Which platform is being previewed</li><li>Which story variant is active</li></ul><p>That keeps routing very simple.</p><p>The preview area does not need a complex navigation graph.<br>It only needs to know the current context and pass it to a renderer.</p><p>Conceptually, the flow becomes:</p><pre>Context → StoryRenderer → Component Story → Device Preview</pre><p>That simplicity is important because the project is meant to be easy to extend.</p><p>Adding a new component should not require understanding a huge framework.</p><p>It should feel closer to adding a new story, adding controls where needed, and letting the runtime handle the rest.</p><h3>DevicePreviewArea: Where the Prism Metaphor Comes Alive</h3><p>The most distinctive part of Fabric Prism is the device preview layer.</p><p>Instead of placing a component inside a plain box, the preview area wraps stories inside a custom device-like shell.</p><p>This shell can include:</p><ul><li>Android and iOS style frames</li><li>Status bar treatment</li><li>Battery and signal indicators</li><li>Current time</li><li>Safe-area padding</li><li>Platform-specific spacing</li><li>Special handling for overlays</li></ul><p>This is where the preview starts feeling more useful than a static gallery.</p><p>The component is no longer floating in an abstract space.</p><p>It is placed inside something that resembles the environment where it might actually be used.</p><h3>Overlay Components Need Special Treatment</h3><p>Not every component should be rendered the same way.</p><p>A button, checkbox, or text field can sit inside a regular content area.</p><p>But components like:</p><ul><li>Alert dialogs</li><li>Modal bottom sheets</li><li>Fullscreen modals</li></ul><p>need to behave like overlays.</p><p>They should not be trapped inside a padded preview container.<br>They need to appear from the correct layer of the simulated device screen.</p><p>So Fabric Prism treats overlay components differently.</p><p>That decision made the previews feel more believable, especially for modal surfaces.</p><p>It also made the project more useful for testing layout and interaction assumptions.</p><h3>Platform Switching Is More Than a Theme Toggle</h3><p>One of the key ideas behind Fabric Prism is that platform matters.</p><p>Android and iOS are not just two color modes.</p><p>They have different expectations around:</p><ul><li>Layout</li><li>Spacing</li><li>Typography</li><li>Action placement</li><li>Surfaces</li><li>Motion</li><li>Interaction patterns</li></ul><p>So switching platform in Fabric Prism is not only cosmetic.</p><p>A story can react to the selected platform and adjust itself accordingly.</p><p>For example, an alert dialog might use:</p><ul><li>Android-style surface treatment and button alignment</li><li>iOS-style typography and stacked actions</li></ul><p>A modal bottom sheet might behave as:</p><ul><li>a draggable Android bottom sheet</li><li>an iOS-style action sheet with grouped actions and cancel separation</li></ul><p>This was one of the most valuable parts of the experiment.</p><p>It showed how a single component concept can have multiple platform interpretations, and how a design system tool can make those differences visible quickly.</p><h3>Controls Should Be Story-Aware</h3><p>Another thing I wanted to avoid was a generic “props table” experience.</p><p>Generic controls are flexible, but they can also feel noisy.</p><p>So Fabric Prism uses component-specific control panels.</p><p>For example:</p><ul><li>Alert dialog controls</li><li>Modal bottom sheet controls</li><li>Button controls</li><li>Checkbox controls</li><li>Table controls</li></ul><p>That allows each story to expose only the controls that actually matter.</p><p>It also makes the tool feel more like a curated workbench and less like a raw property editor.</p><p>For design system experimentation, that difference matters.</p><p>The goal is not to expose every possible value.</p><p>The goal is to help contributors explore meaningful states quickly.</p><h3>A Small JavaScript Bridge</h3><p>One implementation detail I found interesting was exposing a tiny JavaScript API through the browser global scope.</p><p>Conceptually, the runtime can expose something like:</p><pre>globalThis.FabricPrism</pre><p>This makes it possible for external scripts to control the runtime.</p><p>For example:</p><ul><li>Mount a story</li><li>Switch selected component</li><li>Update platform</li><li>Apply global values</li></ul><p>For now, this is mostly an extensibility experiment.</p><p>But it opens up interesting future possibilities:</p><ul><li>Embedding previews in documentation</li><li>Driving demos from external pages</li><li>Syncing theme, brand, or locale</li><li>Automated preview scenarios</li><li>Opening specific component states from a shared link</li></ul><p>I like this because it keeps the Compose runtime open to the surrounding web environment instead of making it a closed canvas-only experience.</p><h3>Web Deployment Keeps It Shareable</h3><p>One reason Kotlin/Wasm was exciting for this project is distribution.</p><p>If the component lab can be built as a static web artifact, it becomes very easy to share.</p><p>No simulator setup.<br>No Android Studio requirement.<br>No local environment needed just to inspect a component.</p><p>A teammate can open a URL and start exploring.</p><p>For an internal hobby project, that is a big advantage.</p><p>It lowers the barrier for feedback and makes the tool feel more collaborative.</p><h3>What This Means for Review and QA</h3><p>Fabric Prism is not a replacement for real device testing.</p><p>I still believe final validation should happen where the component actually runs: in an app, on devices, and through the right testing infrastructure.</p><p>But not every question needs to wait for that stage.</p><p>Fabric Prism can help answer early review questions like:</p><ul><li>Does the component render correctly in different states?</li><li>Does long text break the layout?</li><li>Does the modal appear at the right layer?</li><li>Does Android behavior differ from iOS behavior?</li><li>Does the design still feel correct in a realistic screen frame?</li><li>Is this change worth pushing into a build for deeper testing?</li></ul><p>That makes it useful as a pre-validation layer.</p><p>A browser-based lab can catch many obvious issues before they become release candidates.</p><h3>Why This Experiment Was Useful</h3><p>Fabric Prism helped me explore a few important ideas.</p><h3>1. Component previews need context</h3><p>A component lab becomes much more useful when it shows components inside realistic frames instead of isolated boxes.</p><h3>2. Platform differences should be visible</h3><p>If Android and iOS behave differently, the preview tool should make that difference obvious.</p><h3>3. Overlays deserve their own rendering model</h3><p>Dialogs, sheets, and fullscreen modals should be mounted like overlays, not inline content.</p><h3>4. Controls should guide exploration</h3><p>The best controls are not always the most generic ones. Sometimes component-specific controls create a better authoring and review experience.</p><h3>5. Compose Multiplatform can be used for tooling</h3><p>This was the biggest personal takeaway.</p><p>Compose Multiplatform is not only useful for building product UI.</p><p>It can also power internal tools, previews, labs, and workflow experiments.</p><h3>6. Browser-based previews can shorten testing loops</h3><p>A web preview cannot replace BrowserStack or real devices.</p><p>But it can reduce how often small experiments need to reach that stage before basic visual and behavioral questions are answered.</p><h3>What I Would Explore Next</h3><p>Because Fabric Prism is still an internal hobby project, there are many directions it could grow in:</p><ul><li>Better theme switching</li><li>Brand and locale simulation</li><li>Deep links for specific component states</li><li>Snapshot generation</li><li>Accessibility preview modes</li><li>Responsive device presets</li><li>Documentation embedding</li><li>Automated visual review flows</li><li>BrowserStack handoff only for validated scenarios</li></ul><p>The interesting part is that the foundation already supports these ideas.</p><p>Once the runtime understands component, platform, story, and controls, a lot of tooling possibilities become easier to imagine.</p><h3>The Bigger Lesson</h3><p>The bigger lesson from building Fabric Prism is simple:</p><blockquote><em>A design system preview should not only show how a component looks.<br>It should help you understand how that component behaves.</em></blockquote><p>That means context matters.<br>Platform matters.<br>Interaction matters.<br>State matters.<br>Testing feedback loops matter.</p><p>A good component lab should make all of those things easier to inspect.</p><h3>Final Thoughts</h3><p>Fabric Prism started as a personal experiment to make component previews feel more realistic.</p><p>It is not trying to replace existing Storybook tooling.<br>It is not trying to be a full emulator.<br>It is not even trying to be a finished product.</p><p>It is simply an exploration of what design system tooling can feel like when it is built closer to the components, closer to the platforms, and closer to real usage.</p><p>The testing benefit is a bonus, but an important one.</p><p>If I can validate the first layer of behavior in the browser, I do not need to release a new version of the library or push a Showkase app to BrowserStack for every small change.</p><p>That makes experimentation faster.</p><p>And sometimes, faster experimentation is exactly what helps a design system improve.</p><p>Because many useful internal tools do not start as official platforms.</p><p>They start as a question:</p><blockquote><em>“What if we could preview this better?”</em></blockquote><p>Fabric Prism is my attempt to answer that question.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7818f8356f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Beyond the IDE:]]></title>
            <link>https://medium.com/@dakshsemwal_/android-beyond-the-ide-8a440860fd46?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a440860fd46</guid>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 06:55:53 GMT</pubDate>
            <atom:updated>2026-04-22T08:08:01.284Z</atom:updated>
            <content:encoded><![CDATA[<h4>CLI Skills, Design Systems &amp; the Rise of Figma MCP</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OYrwCEzDrNcYdWuTT4gy-g.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUpTnARPaG7M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUpTnARPaG7M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUpTnARPaG7M%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ddacbe5fbc26cdb758ae0b58afbad58/href">https://medium.com/media/8ddacbe5fbc26cdb758ae0b58afbad58/href</a></iframe><blockquote><em>We’re not moving beyond the IDE because it’s obsolete.</em><br> <em>We’re moving beyond it because it’s no longer the center.</em></blockquote><h4>The Illusion of the IDE</h4><p>For over a decade, Android development revolved around<br> <strong>Android Studio</strong></p><p>Write code → Run → Debug → Repeat.</p><p>It gave us structure. Speed. Confidence.</p><p>But it also gave us an illusion:</p><blockquote><em>That development happens </em>inside<em> the IDE.</em></blockquote><p>It doesn’t.</p><h4>The Real System You’re Already Part Of</h4><p>Every time you ship a feature, you’re already interacting with:</p><ul><li>Build systems</li><li>CI/CD pipelines</li><li>Design tools</li><li>APIs and backends</li><li>Analytics and observability</li></ul><p>The IDE is just one surface on top of a much larger system.</p><p>And now, that system is becoming <strong>programmable</strong>.</p><h3>Enter Android Skills</h3><p>According to <strong>Android Developers</strong>, Android Skills are:</p><blockquote><em>Structured capabilities that allow tools and agents to interact with Android apps, devices, and environments.</em></blockquote><p>That sounds abstract — but it’s a massive shift.</p><h4>From Commands to Capabilities</h4><p><strong>Old world:</strong></p><pre>adb logcat<br>adb shell input tap 500 1200<br>./gradlew assembleDebug</pre><p><strong>New world:</strong></p><pre>{<br>  &quot;skill&quot;: &quot;android.logs.read&quot;<br>}</pre><pre>{<br>  &quot;skill&quot;: &quot;android.ui.interact&quot;,<br>  &quot;action&quot;: &quot;tap&quot;,<br>  &quot;target&quot;: &quot;checkout_button&quot;<br>}</pre><pre>{<br>  &quot;skill&quot;: &quot;android.build.assemble&quot;,<br>  &quot;variant&quot;: &quot;debug&quot;<br>}</pre><h4>Why this matters</h4><p>You’re no longer:</p><blockquote><em>Executing commands manually</em></blockquote><p>You’re defining:</p><blockquote><strong><em>Intent that systems can execute</em></strong></blockquote><h4>The Rise of Agents</h4><p>Once capabilities become structured…</p><p>Agents can use them.</p><p>AI tools, CI systems, scripts, and even design tools can now:</p><ul><li>Trigger builds</li><li>Simulate user flows</li><li>Inspect UI hierarchies</li><li>Debug issues automatically</li></ul><p>This is where Android shifts from:</p><blockquote><em>A developer-driven platform</em></blockquote><p>to:</p><blockquote><em>A </em><strong><em>system-driven platform</em></strong></blockquote><h4>Design Systems: The Foundation That Makes This Work</h4><p>None of this works without consistency.</p><p>That’s why design systems are no longer “nice to have”.</p><p>At companies like <strong>H&amp;M</strong>, systems like Fabric define:</p><ul><li>Tokens (colors, spacing, typography)</li><li>Components (buttons, inputs, layouts)</li><li>Patterns (flows, interactions)</li></ul><p>With <strong>Jetpack Compose</strong>, this becomes code-native:</p><pre>Text(<br>    text = &quot;Checkout&quot;,<br>    style = FabricTheme.typography.headingM,<br>    color = FabricTheme.colors.textPrimary<br>)</pre><h4>Why design systems matter more in this world</h4><p>Agents can only work with:</p><ul><li>Structured systems</li><li>Predictable patterns</li><li>Consistent naming</li></ul><p>If your UI is inconsistent:</p><blockquote><em>Automation breaks<br> Agents fail<br> Systems collapse</em></blockquote><h4>Figma MCP: The Missing Link</h4><p>Now comes the bridge.</p><p><strong>Figma</strong> is evolving from:</p><blockquote><em>A design tool</em></blockquote><p>into:</p><blockquote><em>A </em><strong><em>data source for systems</em></strong></blockquote><p>With MCP (Model Context Protocol), design becomes:</p><ul><li>Structured</li><li>Machine-readable</li><li>Queryable</li></ul><h4>What this unlocks</h4><p>Instead of:</p><ul><li>Designers handing off screens</li><li>Developers interpreting manually</li></ul><p>You get:</p><ol><li>Designer updates a component</li><li>MCP exposes structured data</li><li>An agent reads the change</li><li>Android Skills execute updates</li><li>The app reflects it</li><li>Feedback flows back</li></ol><h4>This is the key shift</h4><blockquote><em>Design is no longer a handoff.<br> It’s a </em><strong><em>live input into the system</em></strong><em>.</em></blockquote><h4>The New Development Loop</h4><p>Here’s what Android development is becoming:</p><pre>Figma (Design Intent)<br>        ↓<br>MCP Layer<br>        ↓<br>AI Agent<br>        ↓<br>Android Skills<br>        ↓<br>App (Compose UI)<br>        ↓<br>Logs / UI / State / Metrics<br>        ↓<br>Back to Design</pre><p>This is a <strong>closed-loop system</strong>.</p><p>No silos.<br> No guesswork.<br> No drift.</p><h4>The New Developer Mindset</h4><p>This shift demands a new kind of Android engineer.</p><h4>1. Think in systems, not screens</h4><p>Your job isn’t UI — it’s flow, structure, and behavior.</p><h4>2. Define capabilities, not steps</h4><p>Stop writing instructions. Start defining intent.</p><h4>3. Build for automation</h4><p>If a system can’t interact with your app, it can’t scale.</p><h4>4. Collaborate across tools</h4><p>Design, code, CI, and AI are now one loop.</p><h4>5. Embrace agents</h4><p>Not as replacements — but as force multipliers.</p><h4>Final Thought</h4><p>We often ask:</p><blockquote><em>“What comes after the IDE?”</em></blockquote><p>But that’s the wrong question.</p><p>The real question is:</p><blockquote><em>“What happens when development is no longer centered around </em>any single tool<em>?”</em></blockquote><h4>The answer:</h4><ul><li><strong>Android Skills</strong> become the interface</li><li><strong>Design Systems</strong> become the foundation</li><li><strong>Figma MCP</strong> becomes the bridge</li><li><strong>Agents</strong> become the orchestrators</li></ul><h4>Closing</h4><p><strong>Android development is evolving.</strong></p><p>From IDE → Systems<br> From Commands → Capabilities<br> From Developers → Orchestrators</p><p>And the engineers who understand this shift early…</p><blockquote><em>Won’t just build better apps.<br> They’ll redefine how apps are built.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a440860fd46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Intelligent Android Apps with Generative AI]]></title>
            <link>https://medium.com/@dakshsemwal_/building-intelligent-android-apps-with-generative-ai-09e6d288d84b?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/09e6d288d84b</guid>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Mon, 08 Sep 2025 06:25:16 GMT</pubDate>
            <atom:updated>2026-09-08T06:57:40.629Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBE5x7Bxq0rxJfLqM-2KWg.png" /></figure><p><a href="https://notebook.google.com/notebook/7a8ca219-76da-4747-88fa-b71863f8d0ed/artifact/650dbf52-b13e-40df-b7aa-07b2321c5b1f?utm_source=nlm_web_share&amp;utm_medium=google_oo&amp;utm_campaign=art_share_1&amp;utm_content=&amp;utm_smc=nlm_web_share_google_oo_art_share_1_">Pocket Power-Up: Private AI on Your Android with ML Kit GenAI</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEe74ToLWIT8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEe74ToLWIT8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEe74ToLWIT8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d45db47e0d2b3c6a22682c4737e5429/href">https://medium.com/media/0d45db47e0d2b3c6a22682c4737e5429/href</a></iframe><h3>Introduction</h3><p>Generative AI is transforming how Android apps can help users create and consume content. At Google I/O 2025, the <strong>ML Kit GenAI</strong> APIs were announced for on‑device summarisation, proofreading, rewriting and image description. These APIs run entirely on the device, so user data never leaves the phone; they work offline, have no per‑request fees and require no prompt engineering. For heavier or multimodal tasks, cloud models such as <strong>Gemini Pro</strong> and <strong>Imagen</strong> are available via Firebase AI Logic. Integrating these capabilities into your app can offer new experiences while preserving privacy, but it also demands careful architecture.</p><h3>Understanding ML Kit GenAI APIs</h3><p>ML Kit’s generative APIs currently include four tasks:</p><p>· <strong>Summarisation:</strong> Condense long pieces of text into concise bullet points or paragraphs. Great for summarising articles, chat logs or meeting notes.</p><p>· <strong>Proofreading:</strong> Suggest grammar and style corrections for short passages, helping users polish their writing.</p><p>· <strong>Rewriting:</strong> Rewrite a sentence or paragraph in a different tone (e.g. formal, casual, optimistic or critical) without the need for elaborate prompts.</p><p>· <strong>Image description:</strong> Generate alt‑text descriptions for images, enhancing accessibility and search.</p><p>Each API is powered by the <strong>Gemini Nano</strong> model paired with a small LoRA adapter, which enables task‑specific tuning. Google’s evaluations show that these adapters improve accuracy substantially over the base model across multiple languages and domains. Because the models run locally, sensitive content is never sent to the cloud and the app works even when offline. Developers can also opt into cloud models when they need higher‑fidelity results or multimodal inputs, but this requires managing API keys and network connectivity.</p><h3>Architectural Considerations</h3><p>Integrating generative AI shouldn’t compromise the maintainable architecture established in your previous <strong>Architecture at Scale</strong> series. Key principles to uphold include:</p><p>· <strong>Modularization:</strong> Organise the project into clear modules (e.g., app, domain, data, mlkit-genai, ui, common) so that generative logic is isolated and testable. Modularization supports faster builds and easier scaling.</p><p>· <strong>Unidirectional data flow:</strong> Centralise state in ViewModels or state holders and propagate updates via immutable state objects and flows. This minimises recomposition and ensures predictable UI behaviour.</p><p>· <strong>Dependency injection:</strong> Use a framework such as Hilt to provide generative AI clients and repositories. DI eliminates boilerplate and makes it easier to swap out implementations for testing.</p><p>· <strong>Separation of concerns:</strong> Keep UI code separate from domain logic. The UI should invoke use cases that wrap the generative API calls; the data layer should implement repository interfaces and handle conversions.</p><h3>Implementing the Summarisation Feature</h3><p>Below is a simplified example that shows how to integrate the summarisation API using Kotlin. The project follows the recommended multi‑module structure and uses Hilt for dependency injection.</p><h3>1 — Create a client in mlkit-genai module</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/600b7386a0dd6a77c32fd7cfe5d0e499/href">https://medium.com/media/600b7386a0dd6a77c32fd7cfe5d0e499/href</a></iframe><p>This client configures the summariser, checks for the feature’s availability and downloads it if necessary, then runs inference on the provided text. Wrapping the API in a class makes it easy to mock during testing.</p><h3>2 — Define a repository and use case</h3><p>In the data module, implement a GenerativeAiRepository that delegates to the client:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e9f2a95cc6ca46409d2eece58e66367/href">https://medium.com/media/4e9f2a95cc6ca46409d2eece58e66367/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11f5c537b54f3d187adeae1637df2f9b/href">https://medium.com/media/11f5c537b54f3d187adeae1637df2f9b/href</a></iframe><p>In the domain module, define a use case:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75c7db8eaa76110d26203dff42254587/href">https://medium.com/media/75c7db8eaa76110d26203dff42254587/href</a></iframe><h3>3 — ViewModel and UI state</h3><p>The app module’s ViewModel holds UI state and calls the use case when the user taps the “Summarise” button. It emits loading, success or error states to the UI.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8384a89c5a7cefc25bc9ba4657df0789/href">https://medium.com/media/8384a89c5a7cefc25bc9ba4657df0789/href</a></iframe><p>Finally, design the Compose screen to display the text field, button and result. Observe the ViewModel’s state and update the UI accordingly. This pattern maintains unidirectional data flow and avoids unnecessary recompositions.</p><h3>Security and Privacy</h3><p>When adding AI features, remain vigilant about security. Do not hardcode API keys or secrets — store them in environment variables or a secrets manager. Use secure network protocols (HTTPS with certificate pinning) when accessing cloud models. If you store AI prompts or results, encrypt them using EncryptedSharedPreferences or SQLCipher. Always explain to users why you are using generative AI and obtain consent when processing personal data.</p><h3>Analytics and Monitoring</h3><p>Monitor how users interact with AI features and how well the models perform. Track metrics such as inference latency, crash rates, error rates, summarisation adoption and user engagement. Tools like Firebase Analytics, Crashlytics and performance monitoring can capture these metrics. Use A/B testing or cohort analysis to evaluate new AI features and measure their impact.</p><h3>Designing Intuitive AI Experiences</h3><p>Generative AI should enhance — not disrupt — the user experience. Offer summarisation or rewriting only when it adds value, and allow users to edit AI‑generated content. Provide clear feedback during inference (e.g., progress indicators) and handle errors gracefully. Material 3 Expressive design encourages emotive, accessible UIs; use these principles to integrate AI outputs into your design. The <strong>Image description</strong> API can generate alt‑text for user images, improving accessibility.</p><h3>Conclusion</h3><p>By leveraging ML Kit GenAI APIs, you can bring powerful generative capabilities to your Android apps while keeping data on‑device. Maintaining a modular architecture, state management, proper dependency injection and robust security practices ensures that these features scale gracefully. In future parts of this series, we will extend the <strong>Smart Notes</strong> app to include rewriting, proofreading and image‑description features and provide a project scaffold you can clone to jump‑start your own experiments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09e6d288d84b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building at Scale with Fabric: 
Android & the Power of a Design System]]></title>
            <link>https://medium.com/@dakshsemwal_/building-at-scale-with-fabric-android-the-power-of-a-design-system-83642426d845?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/83642426d845</guid>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Sat, 05 Jul 2025 09:49:29 GMT</pubDate>
            <atom:updated>2025-09-12T10:09:38.341Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building at Scale with Fabric: <br>Android &amp; the Power of a Design System</h3><p>How <a href="https://hmgroup.com/">H&amp;M</a> uses the Fabric Design System to deliver consistent, scalable UIs on all platforms</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z0zAAtFOmw3G_MlcJJJrhw.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fph0vLOH9XrY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dph0vLOH9XrY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fph0vLOH9XrY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dcfa5063320c2ac4398b631bb262565a/href">https://medium.com/media/dcfa5063320c2ac4398b631bb262565a/href</a></iframe><p><a href="https://notebooklm.google.com/notebook/fcc6d049-937b-4a4e-af00-3501f4dc3593/audio">Sign in</a></p><h3>What is a Design System?</h3><p>A <strong>Design System</strong> is more than just a collection of components or a style guide. It’s a living, breathing set of standards and tools that guide the design and development of digital experiences. At its core, a design system includes:</p><ul><li><strong>Design Tokens</strong> — the smallest design decisions like color, typography, spacing, etc.</li><li><strong>Reusable Components</strong> — buttons, forms, headers, and more built using those tokens</li><li><strong>Guidelines</strong> — how to use these components and tokens effectively</li><li><strong>Tooling</strong> — libraries, plugins, linters, and documentation to drive adoption</li></ul><p>A design system enables teams to build faster, stay on-brand, and scale consistently — across platforms, markets, and use cases.</p><h3>Bringing Design Under One Roof</h3><p>At H&amp;M, as our global digital presence expanded, we began to feel the strain of decentralization. Teams started creating their own components, color palettes shifted per team, and accessibility was implemented inconsistently. While we had some structure, we lacked a central authority — a <strong>source of truth</strong> — to define, distribute, and monitor design decisions across platforms.</p><p>Enter <strong>Fabric</strong>: H&amp;M’s cross-platform Design System. Fabric unifies our design language and empowers teams to build with consistency, accessibility, and speed — whether on Android, iOS, or Web. No more wild variations. No more visual drift. Just one shared foundation.</p><h3>Vision &amp; Mission</h3><p><strong>Vision:</strong> To be the most loved tool by our users — enabling the creation of cohesive, fast experiences centered on the H&amp;M brand. A system that serves any platform, market, vendor, franchise partner, or co-lab through accessible and reusable building blocks.</p><p>Think: from napkin sketch to production code, almost instantly.</p><p><strong>Mission:</strong> To solve the challenge of creating a consistent and scalable design solution for all of H&amp;M Group. Designers, engineers, content creators, and brand teams all benefit from a shared system. We’ll know it works when adoption and contribution rise, and time-to-market and onboarding time go down.</p><h3>Why Fabric? Why Now?</h3><p>Before Fabric, development was siloed. Multiple button flavors coexisted. Typography was reinvented per screen. Dark mode was often bolted on last-minute. We needed to shift from independent artistry to collaborative design — where everyone paints with the same brush.</p><p>Fabric brings:</p><ul><li><strong>Shared Tokens</strong> for spacing, colors, and typography</li><li><strong>Reusable Components</strong> with branding and accessibility built-in</li><li><strong>Scalable Themes</strong> tailored to market or brand</li><li><strong>Documentation and Tooling</strong> to accelerate adoption</li></ul><h3>Android: Scaling Through Compose</h3><p>On Android, we built Fabric atop Jetpack Compose, using brand-aware theming and a structured component library. Each screen is wrapped in a FabricTheme based on brand and market, so visuals stay consistent without extra effort.</p><p>Want to support right-to-left languages, or adjust fonts for Greek and Hebrew? Fabric has built-in support.</p><p>We even experimented with a Harry Potter variant to demonstrate how easy it is to switch themes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2uEYAolVJXbOn8OPIyrSpg.png" /></figure><h3>Visual Quality: Our North Star</h3><p>Fabric isn’t just about reusability — it’s about visual fidelity. We enforce consistency through:</p><ul><li><strong>Lint rules</strong> to block unsupported Material Components</li><li><strong>Theming Previews</strong> for light/dark/brand validation</li><li><strong>Usage Analytics</strong> to monitor adoption rates</li></ul><p>Design is no longer a loose guideline — it’s a shared contract.</p><h3>Scaling Design, Not Just Code</h3><p>Fabric shifted the conversation from <strong>“How should this look?”</strong> to <strong>“Let’s plug in the system.”</strong></p><p>New joiners are productive faster. Designers speak the same language as engineers. And everyone builds toward a unified user experience, without slowing down.</p><p>Fabric doesn’t just scale visuals — it scales culture.</p><blockquote>“Help will always be given at Fabric to those who ask for it.”</blockquote><h3>Who’s <strong>Design Systems</strong> For (and Not For)?</h3><p><strong>Design Systems are for:</strong></p><ul><li>Designers who want to ensure consistent visuals and interactions</li><li>Developers aiming to build scalable, maintainable UIs faster</li><li>QA testers checking for alignment, layout integrity, and accessibility</li></ul><p><strong>Design Systems are not for:</strong></p><ul><li>Teams crafting entirely bespoke or experimental UIs without reuse</li><li>Feature squads unwilling to collaborate within brand and accessibility constraints</li></ul><p>Design Systems provide <strong>structure with creative freedom</strong> — a way to innovate responsibly. The goal isn’t to stifle creativity but to channel it within a shared language and system of design.</p><h3>Thank You 🌟</h3><p>If you’re navigating a redesign, managing a growing product, or just tired of button chaos — consider a Design System. Fabric helped us bring every visual decision under one roof. It might just do the same for you.</p><p>Let’s keep the conversation going.✨</p><p>#Android #DesignSystem #JetpackCompose #H&amp;M #Fabric #UX #ScalableUI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83642426d845" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Convention Plugins in Gradle:]]></title>
            <link>https://medium.com/@dakshsemwal_/convention-plugins-in-gradle-511eba6673ff?source=rss-6634658b467c------2</link>
            <guid isPermaLink="false">https://medium.com/p/511eba6673ff</guid>
            <category><![CDATA[build-logic]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[gradle]]></category>
            <category><![CDATA[android-architecture]]></category>
            <dc:creator><![CDATA[Daksh Semwal]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 08:12:28 GMT</pubDate>
            <atom:updated>2025-06-06T08:21:42.770Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Hidden Superpower for Scalable Project Architecture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bu6GibsWFB--zUwSxeB5mQ.png" /></figure><p><a href="https://notebooklm.google.com/notebook/7f42eb5b-88f1-4104-b525-7c7b498fc3ac/audio">Sign in</a></p><p>When it comes to Android or Kotlin-based development at scale, managing project structure, build configurations, and shared logic becomes increasingly challenging. While tools like <strong>Version Catalogs</strong> and the <strong>Kotlin DSL</strong> have brought consistency and clarity to dependency management, there’s one Gradle feature that still flies under the radar: <strong>Convention Plugins</strong>.</p><p>In this post, we’ll explore what Convention Plugins are, why they matter, and how they can help you <strong>future-proof your project setup</strong>.</p><h3>Why Convention Plugins Matter</h3><p>Picture a large Android codebase with multiple modules: app, core, design-system, feature-X, and so on. Most of these share the same configuration blocks:</p><ul><li>Kotlin JVM or Android compile settings</li><li>Lint and test configurations</li><li>Jetpack Compose setup</li><li>Packaging options</li></ul><p>If every build.gradle.kts file duplicates this logic, maintenance becomes a nightmare. Convention Plugins solve this by letting you <strong>centralize and enforce project-wide Gradle configurations</strong> in a scalable, reusable way.</p><h3>What Are Convention Plugins?</h3><p>Convention Plugins are <strong>custom Gradle plugins</strong> you define within your own project, typically inside a build-logic module. Unlike build.gradle.kts, which configures one module, Convention Plugins encapsulate reusable configurations that can be applied to many modules with a single line:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/77a4a7e3685e1e9d9a7ae3ef79304db0/href">https://medium.com/media/77a4a7e3685e1e9d9a7ae3ef79304db0/href</a></iframe><p>These plugins are <strong>type-safe, testable, and composable</strong>, making them perfect for large teams and enterprise-grade codebases.</p><h3>Setting Them Up</h3><h3>1. Create a build-logic module</h3><p>In your project root:</p><pre>mkdir -p build-logic/src/main/kotlin/com/yourcompany/plugins</pre><h3>2. Define your plugin class</h3><p>Create a Kotlin file AndroidLibraryConventionPlugin.kt:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d4d802afcb4c80a1fac6e9d8fb10ec3/href">https://medium.com/media/8d4d802afcb4c80a1fac6e9d8fb10ec3/href</a></iframe><h3>3. Register the plugin</h3><p>Create resources/META-INF/gradle-plugins/com.yourcompany.android-library.properties:</p><pre>implementation-class=com.yourcompany.plugins.AndroidLibraryConventionPlugin</pre><h3>4. Apply from any module</h3><p>In any build.gradle.kts:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/77a4a7e3685e1e9d9a7ae3ef79304db0/href">https://medium.com/media/77a4a7e3685e1e9d9a7ae3ef79304db0/href</a></iframe><p>Boom! You’ve abstracted build logic into a reusable plugin.</p><h3>Real Use Cases</h3><p>Here are some plugins you can create to tidy up your architecture:</p><ul><li>android-application – for app modules</li><li>android-library – for shared or core modules</li><li>compose-module – sets up Jetpack Compose with proper compiler flags</li><li>design-system – applies shared typography, colors, and UI config</li><li>lint-config – standardizes lint rules</li></ul><p>Each plugin ensures consistency, reduces boilerplate, and lets your team ship faster.</p><h3>Tips &amp; Gotchas</h3><ul><li><strong>Use Version Catalogs</strong> to manage plugin and dependency versions centrally.</li><li><strong>Avoid hardcoding versions</strong> inside plugins — inject them from libs.versions.toml.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/437ff64a0da9e4883bc2fd38e16c6f8c/href">https://medium.com/media/437ff64a0da9e4883bc2fd38e16c6f8c/href</a></iframe><ul><li><strong>Use Kotlin DSL throughout</strong> — it’s more powerful and IDE-friendly.</li></ul><h3>About Configuration Cache</h3><p>Gradle’s configuration cache can drastically speed up builds, but it comes with certain constraints. For example:</p><ul><li>Avoid using project state at configuration time (like directly reading project.tasks outside a configure block).</li><li>Side-effect-free plugin logic is crucial for cache hits.</li></ul><p>Convention Plugins are easier to make compatible with configuration cache because they encourage encapsulated, declarative build logic and reduce ad-hoc scripting across modules. This structure aligns better with Gradle’s execution model and caching mechanisms, leading to better performance and fewer cache invalidation</p><h3>Convention Plugins + Version Catalogs = Superpowers</h3><p>Convention Plugins define <em>how</em> your build works. Version Catalogs define <em>what</em> dependencies it uses.</p><p>Together, they bring sanity to even the most complex codebases.</p><h3>Conclusion</h3><p>If you’re working on a multi-module project, investing in Convention Plugins is one of the smartest things you can do to make your builds faster, more consistent, and easier to maintain.</p><p>They aren’t just a nice-to-have — they’re a <strong>scalable, future-ready foundation</strong> for modern development.</p><blockquote><em>“Don’t just write builds — </em><strong><em>design</em></strong><em> them.”</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=511eba6673ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>