<?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 Punit Solanki on Medium]]></title>
        <description><![CDATA[Stories by Punit Solanki on Medium]]></description>
        <link>https://medium.com/@punitsolanki157?source=rss-85c57b882cf2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*n85B0uAzCv93KtMQgUMJlA.png</url>
            <title>Stories by Punit Solanki on Medium</title>
            <link>https://medium.com/@punitsolanki157?source=rss-85c57b882cf2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:43:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@punitsolanki157/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[Claude Code for Flutter Development]]></title>
            <link>https://medium.com/@punitsolanki157/claude-code-for-flutter-development-68e7f6efc94c?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/68e7f6efc94c</guid>
            <category><![CDATA[flutter-development]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ai-for-developers]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 03:46:01 GMT</pubDate>
            <atom:updated>2026-10-20T03:46:01.562Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pru1bcDF9lOHLRvFgX7hvw.png" /><figcaption><em>From asking AI to write code to using it as a practical development partner.</em></figcaption></figure><p>When I first started using Claude Code for Flutter development, I was excited by how quickly it could generate code. I could describe a requirement in plain English and get an implementation in seconds.</p><p>But as I started using it for more realistic development tasks, I realized that writing code quickly was only part of the job.</p><p>Sometimes, a small change could affect unrelated code. Sometimes, the generated solution did not follow the project’s existing architecture. And sometimes, code that looked correct still needed debugging and testing.</p><p>That changed how I approached AI-assisted development.</p><p>Instead of simply asking Claude Code to implement a feature, I started focusing on how to provide better context, set clear boundaries, and review the results.</p><p>In this article, I’ll share the lessons I learned, the workflow I follow, and reusable CLAUDE.md examples that other Flutter developers can adapt to their projects.</p><h3>1. The Biggest Lesson: Context Matters</h3><p>A real Flutter application is more than a collection of screens. It contains state management, API integrations, reusable widgets, business logic, and established coding conventions.</p><p>If an AI coding tool does not understand the relevant parts of the application, it may solve the immediate problem while introducing unnecessary changes elsewhere.</p><p>For example, consider a generic request to add a feature to an existing screen.</p><p>Instead of simply asking:</p><blockquote><em>Add the requested feature to this screen.</em></blockquote><p>A more useful instruction is:</p><blockquote><em>Inspect the existing implementation and follow the established patterns. Reuse available components, preserve unrelated functionality, and make only the changes necessary to complete the task.</em></blockquote><h3>2. The Development Workflow I Recommend</h3><p>I don’t believe every task needs a lengthy investigation or a detailed implementation plan. A small change and a complex production bug require different levels of effort.</p><p>For most tasks, I focus on four stages.</p><p><strong>1. Understand the problem.</strong> Explain the expected behavior, relevant context, and constraints. For complex issues, ask Claude Code to investigate the root cause before editing files.</p><p><strong>2. Implement the smallest safe solution.</strong> Follow the existing architecture, reuse available components, and avoid unrelated refactoring or unnecessary dependencies.</p><p><strong>3. Review the changes.</strong> Use Git to inspect what actually changed:</p><p>Check for unexpected modifications, broken business logic, missing error handling, and possible regressions.</p><p><strong>4. Verify the result.</strong> Run the relevant checks:</p><p>For small changes, format only the modified files and run the relevant tests. Also test the affected user flow when necessary.</p><p>The important point is that successful code generation is not the same as a verified implementation.</p><h3>3. Why I Recommend Using CLAUDE.md</h3><p>One thing I found useful was keeping general development instructions separate from individual task prompts.</p><p>Claude Code supports CLAUDE.md files that provide reusable context about coding preferences and project conventions.</p><p>There are two useful levels:</p><ul><li><strong>Global instructions:</strong> Preferences that apply across your projects.</li><li><strong>Project instructions:</strong> Architecture, dependencies, naming conventions, and testing requirements specific to an application.</li></ul><p>On macOS, create your global instruction file with:</p><pre>mkdir -p ~/.claude<br>touch ~/.claude/CLAUDE.md</pre><p>For project-specific instructions, create a CLAUDE.md file in your Flutter project&#39;s root directory.</p><p>See the <a href="https://code.claude.com/docs/en/memory">official Claude Code memory documentation</a> for more information.</p><h3>Example 1: Global Flutter instructions</h3><p>Copy this into ~/.claude/CLAUDE.md:</p><pre># Global Flutter Development Guidelines</pre><pre>## General Principles<br>- Understand existing code before making changes.<br>- Make the minimum necessary changes.<br>- Do not refactor unrelated code.<br>- Preserve existing functionality unless required.<br>- Follow established architecture and conventions.</pre><pre>## Code Quality<br>- Write clean, readable, maintainable Dart code.<br>- Follow Flutter and Dart best practices.<br>- Reuse existing widgets, utilities, and dependencies.<br>- Avoid duplicate code and unnecessary abstractions.<br>- Handle errors and relevant edge cases.</pre><pre>## UI and Design<br>- Reuse existing themes, colors, and components.<br>- Follow established responsive layout patterns.<br>- Avoid unnecessary UI changes.</pre><pre>## Verification<br>- Run formatting, analysis, and relevant tests.<br>- Review changes for potential regressions.<br>- Never claim a check passed unless it was executed.<br>- Report remaining issues clearly.</pre><p>These instructions establish your general expectations without forcing every project to use the same architecture.</p><h3>Example 2: Project-level Flutter instructions</h3><p>Create CLAUDE.md in your Flutter project&#39;s root directory and customize this template:</p><pre># Flutter Project Guidelines</pre><pre>## Architecture<br>- Follow the existing project structure.<br>- Use the state management approach already established.<br>- Reuse existing services, repositories, and utilities.<br>- Preserve business logic and API contracts.<br>- Avoid unnecessary architectural changes.</pre><pre>## Dependencies<br>- Prefer existing packages and utilities.<br>- Check compatibility before adding dependencies.<br>- Avoid unnecessary package upgrades.</pre><pre>## Implementation<br>- Inspect relevant files before editing.<br>- Make only the changes required by the task.<br>- Reuse existing themes, constants, and widgets.<br>- Preserve unrelated functionality.<br>- Handle loading, success, error, and empty states<br>  where applicable.</pre><pre>## Testing<br>- Add or update tests when appropriate.<br>- Run formatting, analysis, and relevant tests.<br>- Review the final changes for regressions.<br>- Report failed or skipped checks honestly.</pre><pre>## Completion Summary<br>- Explain what changed and why.<br>- List modified files.<br>- Report checks performed.<br>- Mention remaining risks or manual testing.</pre><p>Treat these examples as starting points. Customize them to reflect your application’s actual architecture, dependencies, and development practices.</p><p>Avoid making the instruction file unnecessarily long. Keep the rules that consistently help you produce better code.</p><h3>4. Keeping Everyday Prompts Simple</h3><p>Once reusable instructions are in place, you can focus your prompts on the actual task.</p><p>For example, when fixing a bug:</p><pre>Investigate the root cause of the reported issue.<br>Follow existing implementation patterns and make<br>the smallest safe fix.<br>Preserve unrelated functionality and verify the result.</pre><p>When adding a feature:</p><pre>Implement the requested feature using existing<br>components and architectural patterns.<br>Avoid unnecessary dependencies or refactoring.<br>Test the implementation where possible.</pre><p>When reviewing code:</p><pre>Review the current changes for bugs, regressions,<br>and missing edge cases.<br>Do not edit files yet. Explain the findings and<br>recommend the necessary fixes.</pre><p>For more complex tasks, ask Claude Code to investigate first and propose a plan. For straightforward tasks, a focused prompt is often enough.</p><p>You can also use /memory inside Claude Code to inspect the instruction files loaded in your session.</p><h3>5. Mistakes Worth Avoiding</h3><p>A few habits can make AI-assisted development less reliable:</p><ul><li><strong>Vague requests:</strong> Explain the expected behavior and relevant constraints.</li><li><strong>Too many unrelated tasks:</strong> Keep changes focused so they are easier to review.</li><li><strong>Overloaded instruction files:</strong> Keep CLAUDE.md concise and relevant.</li><li><strong>Blind trust:</strong> Review generated code instead of assuming it is correct.</li><li><strong>Skipping tests:</strong> Check the actual user flow, not just whether the code compiles.</li></ul><p>Remember that CLAUDE.md provides guidance, not guarantees. You still need to understand and validate the implementation.</p><h3>Conclusion: Use AI Without Losing Control of Your Code</h3><p>My experience with Claude Code has taught me that effective AI-assisted development is not about generating the maximum amount of code in the shortest time.</p><p>It is about making development more efficient while maintaining code quality and control.</p><p>Clear instructions help establish expectations. A useful CLAUDE.md reduces repetitive prompting. A focused workflow makes changes easier to review, and proper testing helps catch problems before they reach users.</p><p><strong>My rule is simple: let AI help write the code, but take responsibility for the result.</strong></p><p>Start with a small task, provide the right context, review the changes, and learn from the outcome. Over time, these habits can turn Claude Code into a genuinely useful development partner.</p><p><strong>What has your experience been with Claude Code or other AI coding tools?</strong> Share your workflow and lessons in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68e7f6efc94c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fix RadioListTile groupValue and onChanged Deprecation in Flutter]]></title>
            <link>https://medium.com/@punitsolanki157/fix-radiolisttile-groupvalue-and-onchanged-deprecation-in-flutter-59a377437a35?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/59a377437a35</guid>
            <category><![CDATA[flutter-widget]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 15:36:01 GMT</pubDate>
            <atom:updated>2026-09-24T15:36:01.650Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dx3kiyKFzgPSk7rv0op_5A.png" /></figure><p>After upgrading Flutter to a newer version, I started getting these warnings in my Flutter project:</p><pre>&#39;groupValue&#39; is deprecated and shouldn&#39;t be used.<br>Use a RadioGroup ancestor to manage group value instead.<br>&#39;onChanged&#39; is deprecated and shouldn&#39;t be used.<br>Use RadioGroup to handle value change instead.</pre><p>If you are seeing the same warnings, the solution is to move the radio button state management from RadioListTile to a new RadioGroup widget.</p><h3>Why Does This Warning Appear?</h3><p>In older Flutter versions, we normally managed a group of radio buttons like this:</p><pre>int selectedOption = 1;<br>RadioListTile&lt;int&gt;(<br>  value: 1,<br>  groupValue: selectedOption,<br>  onChanged: (value) {<br>    setState(() {<br>      selectedOption = value!;<br>    });<br>  },<br>)</pre><p>For every radio button, we had to provide:</p><ul><li>value</li><li>groupValue</li><li>onChanged</li></ul><p>Flutter has changed this approach in newer versions.</p><p>The groupValue and onChanged properties on Radio and RadioListTile are now deprecated. Flutter recommends using a RadioGroup ancestor to manage the selected value and changes.</p><p>According to Flutter’s official documentation, this redesign also provides better support for accessibility, keyboard navigation, and radio-group semantics.</p><h3>The New Approach</h3><p>Instead of managing the selection separately inside every RadioListTile, we can manage it once using RadioGroup.</p><h3>Before</h3><pre>int selectedOption = 1;<br>Column(<br>  children: [<br>    RadioListTile&lt;int&gt;(<br>      value: 1,<br>      groupValue: selectedOption,<br>      onChanged: (value) {<br>        setState(() {<br>          selectedOption = value!;<br>        });<br>      },<br>      title: const Text(&#39;One&#39;),<br>    ),<br>    RadioListTile&lt;int&gt;(<br>      value: 2,<br>      groupValue: selectedOption,<br>      onChanged: (value) {<br>        setState(() {<br>          selectedOption = value!;<br>        });<br>      },<br>      title: const Text(&#39;Two&#39;),<br>    ),<br>  ],<br>)</pre><h3>After</h3><pre>int selectedOption = 1;<br>RadioGroup&lt;int&gt;(<br>  groupValue: selectedOption,<br>  onChanged: (value) {<br>    if (value != null) {<br>      setState(() {<br>        selectedOption = value;<br>      });<br>    }<br>  },<br>  child: Column(<br>    children: [<br>      RadioListTile&lt;int&gt;(<br>        value: 1,<br>        title: const Text(&#39;One&#39;),<br>      ),<br>      RadioListTile&lt;int&gt;(<br>        value: 2,<br>        title: const Text(&#39;Two&#39;),<br>      ),<br>    ],<br>  ),<br>)</pre><p>The main change is simple:</p><pre>Old:<br>RadioListTile<br> ├── value<br> ├── groupValue<br> └── onChanged</pre><pre>New:<br>RadioGroup<br> ├── groupValue<br> ├── onChanged<br> └── RadioListTile<br>      └── value</pre><p>Each RadioListTile still needs its own value, but the selected value and change callback are now handled by RadioGroup.</p><h3>Why Is This Change Useful?</h3><p>The new approach has a few benefits:</p><p><strong>1. Centralized state</strong></p><p>The selected radio value is managed in one place instead of repeating the same logic for every radio button.</p><p><strong>2. Less duplicated code</strong></p><p>You don’t need to write the same groupValue and onChanged code for every option.</p><p><strong>3. Better accessibility</strong></p><p>Flutter’s new RadioGroup design provides better support for radio-group semantics and keyboard navigation.</p><p><strong>4. Easier to maintain</strong></p><p>When you add or remove radio options, the group logic doesn’t need to be repeated.</p><h3>Important Migration Tip</h3><p>The recommended migration is to create a RadioGroup and move both groupValue and onChanged to it.</p><h3>Conclusion</h3><p>If you recently upgraded Flutter and started seeing groupValue and onChanged deprecation warnings, this is because Flutter has introduced the new RadioGroup API.</p><p>The migration is straightforward: <strong>keep </strong><strong>value on each radio button and move </strong><strong>groupValue and </strong><strong>onChanged to the </strong><strong>RadioGroup.</strong></p><p>This removes the warnings and follows Flutter’s recommended approach for managing radio button groups.</p><p>For more details, check the official Flutter documentation:</p><ul><li><a href="https://docs.flutter.dev/release/breaking-changes/radio-api-redesign">Radio API redesign</a></li><li><a href="https://api.flutter.dev/flutter/widgets/RadioGroup-class.html">RadioGroup API</a></li><li><a href="https://api.flutter.dev/flutter/material/RadioListTile-class.html">RadioListTile API</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59a377437a35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why My Flutter iOS Archive Broke After a Flutter Upgrade (And the Fix)]]></title>
            <link>https://medium.com/@punitsolanki157/why-my-flutter-ios-archive-broke-after-a-flutter-upgrade-and-the-fix-0df9880ed1c3?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/0df9880ed1c3</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[cocoapods]]></category>
            <category><![CDATA[ios-development]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 16:41:01 GMT</pubDate>
            <atom:updated>2026-09-16T16:41:01.268Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HMmYBlLzJM7yBcFqeOXYJw.png" /></figure><p>I upgraded Flutter on a project that had been archiving from Xcode fine for months. No code changes on my end — just the SDK upgrade. Next time I hit <strong>Archive</strong>, it failed immediately.</p><h3>Environment</h3><ul><li>Flutter: 3.44.8 (stable)</li><li>Dart: 3.12.2</li><li>Android Studio: Panda 2 | 2025.3.2</li><li>Xcode: 26.2 (17C52)</li><li>Mac: MacBook Pro, M1 Max, 32 GB</li></ul><h3>The Error</h3><pre>error: The package product &#39;firebase-core&#39; requires minimum platform <br>version 15.0 for the iOS platform, but this target supports 13.0<br>(in target &#39;FlutterGeneratedPluginSwiftPackage&#39;)</pre><p>Plus warnings like:</p><pre>warning: IPHONEOS_DEPLOYMENT_TARGET is set to 11.0, but the range of <br>supported deployment target versions is 12.0 to 26.2.99<br>(in target &#39;TOCropViewController&#39; from project &#39;Pods&#39;)</pre><p>Firebase now requires iOS 15.0+. Some old CocoaPods dependencies still declared iOS 9.0/11.0. And Xcode 26.2 doesn’t support anything below iOS 12.0 anymore.</p><h3>Troubleshooting</h3><p>My Runner target’s deployment target was already correctly set to iOS 15.0/15.6 — so that wasn’t it. My Podfile already had a post_install hook forcing pods to 15.0 too — also not it.</p><p>The clue was in the error itself: the failing target wasn’t Runner, it was FlutterGeneratedPluginSwiftPackage — a Swift Package Flutter auto-generates for plugins (like newer Firebase versions) that use Swift Package Manager, even in a CocoaPods project. That generated file was stuck on a stale iOS 13.0 minimum, out of sync with the rest of the project. The old CocoaPods warnings were just as stale — the Pods project hadn&#39;t been regenerated since the upgrade.</p><h3>The Fix</h3><p><strong>1. Clean everything:</strong></p><p>bash</p><pre>flutter clean<br>rm -rf ios/Pods ios/Podfile.lock ios/.symlinks ios/Flutter/ephemeral<br>rm -rf ~/Library/Developer/Xcode/DerivedData</pre><p><strong>2. Reinstall:</strong></p><p>bash</p><pre>flutter pub get<br>cd ios<br>pod deintegrate<br>pod install --repo-update<br>cd ..</pre><p><strong>3. Regenerate the Swift Package config via the Flutter CLI (this is the key step):</strong></p><p>bash</p><pre>flutter build ios --config-only --release</pre><p><strong>4. Verify it picked up the right version:</strong></p><p>bash</p><pre>cat ios/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage/Package.swift | grep platforms -A2</pre><p>Should show .iOS(&quot;15.0&quot;), not 13.0.</p><p>If it still shows 13.0 — this regression isn&#39;t fully fixed in all 3.44.x builds — apply this stopgap directly:</p><pre>sed -i &#39;&#39; &#39;s/\.iOS(&quot;13.0&quot;)/\.iOS(&quot;15.0&quot;)/&#39; ios/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage/Package.swift</pre><p>That file is regenerated on every flutter clean, so you&#39;ll need to re-run step 4 (and re-patch if it recurs) after any future clean.</p><p><strong>5. Archive:</strong></p><p>bash</p><pre>open ios/Runner.xcworkspace</pre><p>Product → Clean Build Folder (⇧⌘K) → Product → Archive.</p><p>My existing post_install hook in the Podfile didn&#39;t need changes — it just hadn&#39;t been re-applied because Pods was stale:</p><p>ruby</p><pre>post_install do |installer|<br>  installer.pods_project.targets.each do |target|<br>      flutter_additional_ios_build_settings(target)<br>      target.build_configurations.each do |config|<br>        config.build_settings[&#39;IPHONEOS_DEPLOYMENT_TARGET&#39;] = &#39;15.0&#39;<br>      end<br>  end<br>end</pre><h3>Verification</h3><ul><li>flutter build ios --release — clean, no warnings</li><li>Ran on simulator and a physical device — Firebase features (analytics, crashlytics, push) worked normally</li><li>Xcode Archive completed and showed up in Organizer</li><li>Manually checked the app’s core flows — nothing regressed</li></ul><h3>Conclusion</h3><p>If Archive breaks right after a Flutter upgrade, check whether the error points to FlutterGeneratedPluginSwiftPackage instead of your own Runner target — that&#39;s the real signal. The fix is a clean regeneration, not a code change:</p><ol><li>flutter clean + remove Pods/Podfile.lock/.symlinks/ephemeral + DerivedData</li><li>flutter pub get</li><li>pod deintegrate &amp;&amp; pod install --repo-update</li><li>flutter build ios --config-only --release</li><li>Verify Package.swift, then Clean Build Folder + Archive in Xcode</li></ol><p><em>If this helped you, feel free to connect with me on </em><a href="https://medium.com/@punitsolanki157"><em>Medium</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0df9880ed1c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android 17 Explained: The Developer Changes That Matter Most]]></title>
            <link>https://medium.com/@punitsolanki157/android-17-explained-the-developer-changes-that-matter-most-197c195c39e6?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/197c195c39e6</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[android17]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[androiddev]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Fri, 03 Jul 2026 19:33:28 GMT</pubDate>
            <atom:updated>2026-07-03T19:33:28.683Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w-lV8uqhC5q63zD7s-cPxw.jpeg" /></figure><p>Android 17 may not look like a dramatic update. But for developers, some updates are important enough that they can directly impact how our apps behave — especially on large screens and modern devices.</p><p>In this post, I’ll break down the most important Android 17 developer changes, so you can quickly understand what matters and what you should start preparing for.</p><h3>📱 1. Portrait-Only Apps Are No Longer Safe</h3><p>This is probably the biggest change Android developers are talking about.</p><p>For years, many apps relied on:</p><pre>android:screenOrientation=&quot;portrait&quot;</pre><p>to avoid layout issues on tablets and foldables.</p><p>With Android 17 (API 37), Google is changing that approach.</p><p>If your app runs on a display wider than <strong>600dp</strong>, Android may ignore several orientation and resizing restrictions.</p><p>That means:</p><ul><li>screenOrientation=&quot;portrait&quot; may no longer protect your UI</li><li>resizableActivity=&quot;false&quot; can be ignored</li><li>minAspectRatio and maxAspectRatio may not work as expected</li></ul><p>Users will have more freedom to resize apps on tablets, foldables, and desktop-style environments.</p><h3>Why This Matters</h3><p>If your UI only works properly on phones, this update can expose layout problems very quickly.</p><p>Apps that are not adaptive may show:</p><ul><li>Broken layouts</li><li>Overlapping views</li><li>Empty spaces</li><li>Poor tablet experiences</li></ul><p>Google is clearly pushing Android apps toward a future where <strong>adaptive layouts are the standard</strong>.</p><h3>🔄 2. Activity Recreation Becomes More Important</h3><p>More resizing and rotations also mean more activity recreations.</p><p>If your app does not properly manage state, users could lose:</p><ul><li>Form data</li><li>Scroll positions</li><li>Temporary UI state</li></ul><p>This is another reminder that proper architecture matters.</p><p>Using tools like:</p><ul><li>ViewModel</li><li>SavedStateHandle</li><li>Jetpack Compose state management</li></ul><p>will become even more important moving forward.</p><h3>🔐 3. Android 17 Becomes Stricter About Network Security</h3><p>Android 17 continues Google’s push toward secure communication.</p><p>Production apps are expected to use:</p><ul><li>HTTPS</li><li>Modern TLS configurations</li></ul><p>If your app still relies on cleartext HTTP traffic, you now need to explicitly declare exceptions in your Network Security Configuration.</p><p>This is good for security, but older apps may need updates before targeting API 37.</p><h3>🧠 4. Better Performance with a New MessageQueue System</h3><p>Android 17 introduces a new <strong>lock-free MessageQueue implementation</strong>.</p><p>That sounds technical, but the goal is simple:</p><ul><li>Better runtime efficiency</li><li>Reduced thread contention</li><li>Smoother performance</li></ul><p>Most developers won’t need to change code for this, but it’s part of Android’s ongoing effort to improve system responsiveness.</p><h3>📷 5. Camera Improvements for Advanced Apps</h3><p>Android 17 also adds some interesting camera updates.</p><h3>RAW14 Image Support</h3><p>Professional camera apps can now capture:</p><ul><li>14-bit RAW images (RAW14)</li></ul><p>This gives more image detail and editing flexibility.</p><h3>Better Photo Picker Customization</h3><p>Developers can now customize photo picker aspect ratios instead of being limited to square grids.</p><p>Example:</p><ul><li>1:1</li><li>9:16 layouts</li></ul><p>This helps create more modern gallery experiences.</p><h3>🌐 6. Local Network Access Requires Permission</h3><p>Apps targeting Android 17 now need a dedicated permission to interact with devices on the local network.</p><p>This mainly affects apps that:</p><ul><li>Discover nearby devices</li><li>Connect to smart home products</li><li>Use local network communication</li></ul><p>If your app works with Wi-Fi devices, printers, TVs, or IoT hardware, this change is important.</p><h3>💡 What Android 17 Really Tells Us</h3><p>Android 17 sends a very clear message from Google:</p><blockquote><em>Apps should no longer be designed only for phones.</em></blockquote><p>Foldables, tablets, desktops, and multi-tasking environments are becoming part of the normal Android experience.</p><p>The “mobile-only” mindset is slowly becoming technical debt.</p><p>Developers who invest in:</p><ul><li>Adaptive layouts</li><li>Responsive UI</li><li>Better state handling</li><li>Modern architecture</li></ul><p>will have a much smoother transition moving forward.</p><h3>✅ Final Thoughts</h3><p>Android 17 may not be the flashiest Android release, but it introduces several changes that can directly affect real-world apps.</p><p>The biggest takeaway is simple:</p><ul><li>Build adaptive layouts</li><li>Stop relying on fixed orientations</li><li>Prepare for larger screens</li><li>Handle state properly</li><li>Follow modern security practices</li></ul><h3>🔗 References</h3><ul><li><a href="https://developer.android.com/about/versions/17?utm_source=chatgpt.com">Android Developers — What’s New in Android 17</a></li><li><a href="https://developer.android.com/about/versions/17/behavior-changes-all?utm_source=chatgpt.com">Android Developers — Behavior Changes</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=197c195c39e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter 3.38 Explained Simply]]></title>
            <link>https://medium.com/@punitsolanki157/flutter-3-38-explained-simply-a450e9d61e6e?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a450e9d61e6e</guid>
            <category><![CDATA[flutter38]]></category>
            <category><![CDATA[mobiledevskills]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutterdev]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Tue, 03 Feb 2026 11:17:03 GMT</pubDate>
            <atom:updated>2026-02-03T11:17:03.035Z</atom:updated>
            <content:encoded><![CDATA[<p>Flutter 3.38 was officially released on <strong>November 12, 2025</strong>, with a focus on <strong>making your code cleaner, your development faster, and your apps more stable</strong>. This update brings a mix of language improvements, better tools, and platform-specific upgrades. Let’s explore what matters most to you as a Flutter developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d00PJ1w4OCWb1xr7iKukRw.png" /></figure><h3>1. Write Cleaner Code with Dot Shorthand</h3><p>One of the biggest highlights of Flutter 3.38 is the <strong>dot shorthand syntax</strong> for Dart. It lets you <strong>remove repetitive type names</strong> in widget properties and constructors, making code easier to read and write.</p><p><strong>Before (verbose):</strong></p><pre>mainAxisAlignment: MainAxisAlignment.center</pre><p><strong>After (cleaner):</strong></p><pre>mainAxisAlignment: .center</pre><p>This works for things like paddings too:</p><pre>padding: .all(8)</pre><p>This small change reduces boilerplate — especially in widget-heavy UIs.</p><h3>2. Better Development Tools</h3><h4>🔍 Widget Previews Inside Your IDE</h4><p>Flutter now supports <strong>experimental widget previews</strong> directly in <strong>VS Code</strong> and <strong>Android Studio</strong>. You can see how a widget looks without running the full app — like seeing a live design snapshot as you code.</p><p>This makes UI design faster and more interactive.</p><h4>🌐 Web Development Improvements</h4><p>Flutter 3.38 improves the web workflow with:</p><ul><li>A new <strong>web_dev_config.yaml</strong> to set <strong>host, port, SSL, proxy settings</strong>.</li><li><strong>Better hot reload</strong> on the web that now works across multiple browsers at once when using flutter run -d web-server.</li></ul><p>These changes help you debug and iterate faster when building web apps.</p><h3>3. Platform Enhancements</h3><h4>📱 Android</h4><p>Flutter now supports <strong>predictive back gestures by default</strong>, giving your Flutter apps a native Android feel when users swipe back.</p><p>Updates to the Android toolchain also include modern defaults like <strong>Java 17</strong> and newer build tooling that align with current Android standards.</p><h4>🍎 iOS &amp; macOS</h4><p>Full support for the <strong>latest iOS 26, macOS 26, and Xcode 26</strong> means your apps can take advantage of the newest Apple features.</p><h4>🪟 Windows Desktop</h4><p>Desktop apps can now query <strong>display information</strong> such as resolution, refresh rate, and DPI — helpful when you want your UI to adapt beautifully on large screens.</p><h3>4. Framework &amp; Scrolling Improvements</h3><h4>OverlayPortal Enhancements</h4><p>OverlayPortal has been made more flexible. You can now show popups, banners, or custom overlays more reliably and easily in your app.</p><h4>Better Scrolling</h4><p>If your app uses complex scroll views (like lists or grids), Flutter 3.38 improves how gestures and hit-testing work, making scrolling smoother and less buggy.</p><h3>✔️ What This Means for You</h3><p>Flutter 3.38 is<strong> about quality of life</strong> for developers:</p><ul><li><strong>Less typing</strong>, thanks to cleaner syntax.</li><li><strong>Faster debugging</strong> &amp; previewing UI.</li><li><strong>Better support</strong> for modern platforms.</li><li><strong>Smoother browsing/scrolling</strong> and UI layering.</li></ul><p>This release helps you <strong>build apps faster and with fewer hassles</strong>, especially if you work across mobile, web, and desktop.</p><h4>🖱️ Better Scrolling</h4><p>If your app uses complex scroll views (like lists or grids), Flutter 3.38 improves how gestures and hit-testing work, making scrolling smoother and less buggy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a450e9d61e6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Fix Google Play’s Photo & Video Permissions Policy Rejection in Flutter]]></title>
            <link>https://medium.com/@punitsolanki157/how-to-fix-google-plays-photo-video-permissions-policy-rejection-in-flutter-f1a1b1d3378e?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1a1b1d3378e</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[app-permissions]]></category>
            <category><![CDATA[google-play]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Tue, 18 Nov 2025 04:02:35 GMT</pubDate>
            <atom:updated>2025-11-18T04:02:35.985Z</atom:updated>
            <content:encoded><![CDATA[<p>I woke up to an email from Google Play Console that no developer wants to see: “App Status: Rejected”. My heart sank. After weeks of development and testing, my Flutter app was rejected, and I had no idea why.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8W7D7oRpsw6z367Cpbbysg.png" /></figure><p>The rejection email mentioned something about “Photo and Video Permissions policy” and permissions called READ_MEDIA_IMAGES and READ_MEDIA_VIDEO. But here&#39;s the confusing part — I never added these permissions to my app!</p><p>Let me walk you through what happened and how I fixed it. If you’re facing the same issue, this guide will save you hours of frustration.</p><h3>Understanding the Problem</h3><p>Google Play has strict rules about apps that access photos and videos on users’ devices. Here’s the simple version:</p><p><strong>Google’s Rule:</strong> If your app only needs users to pick a photo or video occasionally (like uploading a profile picture or attaching a document), you should NOT ask for broad access to their entire photo library. Instead, you should use something called the “Photo Picker.”</p><p><strong>Why?</strong> Privacy! Users don’t want every app to have access to all their personal photos and videos.</p><h3>Types of Apps and Their Requirements</h3><p>Google divides apps into two categories:</p><ol><li>Apps that CAN use READ_MEDIA permissions:</li></ol><ul><li>Gallery apps (that need to show all photos)</li><li>Photo backup apps (that sync your entire library)</li><li>Photo editors (who browse your photo collection)</li><li>Media organizers</li></ul><p>2. Apps that CANNOT use these permissions (like mine):</p><ul><li>Social media apps (you pick one photo to post)</li><li>Profile picture uploaders</li><li>Document attachment features</li><li>Job documentation apps (my use case)</li></ul><p>My app falls into the second category. Field workers upload specific photos of their work — like before/after pictures of a repair job. They don’t need access to their entire photo library, just the ability to select specific images when needed.</p><h3>The Mystery: Where Did These Permissions Come From?</h3><p>Here’s what confused me the most: I checked my AndroidManifest.xml file, and I never added these permissions. So why was Google saying my app was using them?</p><p><strong>The answer:</strong> Hidden permissions from Flutter packages!</p><p>When you use Flutter packages like:</p><ul><li>image_picker</li><li>file_picker</li><li>permission_handler</li></ul><p>These packages come with their own AndroidManifest.xml files that include permissions. During the build process, Android merges all these manifest files together. So even though YOUR manifest doesn&#39;t have these permissions, the final app DOES because the packages added them automatically.</p><p>This is called a “<strong>merged manifest</strong>,” and it’s where the sneaky permissions were hiding!</p><h3>The Solution That Worked</h3><p>After researching and trying different approaches, here’s what finally worked:</p><h3>Step 1: Explicitly Remove the Permissions</h3><p>I needed to tell Android: “Even if my packages want these permissions, I don’t want them in my final app.”</p><p>I added these lines to my AndroidManifest.xml file:</p><pre>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:tools=&quot;http://schemas.android.com/tools&quot;&gt;<br>    <br>    &lt;!-- EXPLICITLY REMOVE these permissions added by dependencies --&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.READ_MEDIA_IMAGES&quot; <br>        tools:node=&quot;remove&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.READ_MEDIA_VIDEO&quot; <br>        tools:node=&quot;remove&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.READ_MEDIA_AUDIO&quot; <br>        tools:node=&quot;remove&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot;<br>        android:maxSdkVersion=&quot;32&quot;<br>        tools:node=&quot;remove&quot; /&gt;<br>    <br>    &lt;application&gt;<br>        &lt;!-- Your app code here --&gt;<br>    &lt;/application&gt;<br>&lt;/manifest&gt;</pre><p>The Magic: tools:node=&quot;remove&quot; tells the Android build system to exclude these permissions from the final merged manifest, even if other packages try to add them.</p><h3>Step 2: Verify My Code Was Already Compliant</h3><p>The good news? I didn’t need to change any Dart code! The image_picker package (version 1.0.0+) automatically uses the Android Photo Picker on Android 13+ devices. My existing code was already doing the right thing:</p><pre>import &#39;package:image_picker/image_picker.dart&#39;;<br><br>final ImagePicker picker = ImagePicker();<br><br>// This automatically uses Photo Picker on Android 13+<br>Future&lt;void&gt; pickImage() async {<br>  final XFile? image = await picker.pickImage(<br>    source: ImageSource.gallery,<br>  );<br>  <br>  if (image != null) {<br>    // Process your image<br>    File imageFile = File(image.path);<br>  }<br>}</pre><h3>Why This Solution Works</h3><p>Let me break down the technical reasons in simple terms:</p><h3>1. The Photo Picker Advantage</h3><p>When you use the Photo Picker:</p><ul><li>Users see a system dialog where they select specific photos.</li><li>Your app only gets access to the photos they choose.</li><li>No permissions are needed because the user is explicitly choosing what to share.</li><li>It’s like the file picker you see when uploading files on a website — you choose exactly what to share.</li></ul><h3>2. The Manifest Merge System</h3><p>Android merges all manifest files from your app and its dependencies. By default:</p><ul><li>If Package A says “I need permission X”</li><li>And Package B says “I need permission X”</li><li>Your final app gets permission X.</li></ul><p>But with tools:node=&quot;remove&quot;:</p><ul><li>You explicitly say “Remove permission X from the final result”</li><li>This overrides what the packages want.</li><li>Your final app doesn’t have permission X.</li></ul><h3>3. Backwards Compatibility</h3><p>You might wonder: “What about older Android versions that don’t have Photo Picker?”</p><p>Don’t worry! The image_picker package handles this automatically:</p><ul><li>Android 13+ (API 33+): Uses the new Photo Picker (no permissions needed)</li><li>Android 12 and below: Falls back to the old system picker (still works fine)</li></ul><p>Your users on older devices will still be able to pick photos — the experience is just slightly different.</p><h3>The Complete Checklist</h3><p>If you’re facing the same issue, follow these steps:</p><ol><li>Add permission removal to your AndroidManifest.xml</li><li>Don’t forget the tools namespace.</li><li>Update your Play Console declaration.</li><li>Rebuild your app.</li><li>Verify the fix (optional but recommended).</li><li>Upload to Play Console and submit for review.</li></ol><h3>Lessons Learned</h3><p>This experience taught me several important lessons:</p><p>1. Dependencies can add hidden requirements: Always check what permissions your packages add to your app. Just because you didn’t write it in your code doesn’t mean it’s not there.</p><p>2. Google’s policies are strict for good reasons: Privacy matters. Users should control what data apps can access. The Photo Picker is actually a better user experience.</p><p>3. Read the rejection email carefully: Google’s email included a link to their policy page. Reading it thoroughly helped me understand what they actually wanted.</p><p>4. The merged manifest is important: Learn to check your app’s merged manifest in Android Studio. It shows you the final result of combining all manifest files.</p><p>5. Declaration wording matters: How you explain your app’s functionality in Play Console can make or break your approval.</p><h3>The Happy Ending</h3><p>After making these changes, I uploaded a new version of my app. Within 48 hours, I got the email I’d been waiting for: “Your app has been approved and is now live on Google Play!”</p><h3>Resources That Helped Me</h3><p>If you want to dive deeper, here are the resources I found most helpful:</p><ul><li><a href="https://support.google.com/googleplay/android-developer/answer/14115180">Google’s Photo and Video Permissions Policy</a></li><li><a href="https://developer.android.com/training/data-storage/shared/photopicker">Android Photo Picker Documentation</a></li><li><a href="https://pub.dev/packages/image_picker">image_picker Package Documentation</a></li><li>Flutter GitHub Issues (several developers shared solutions)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1a1b1d3378e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Play’s 16 KB Page Size Requirements: What Every Android Developer Needs to Know]]></title>
            <link>https://medium.com/@punitsolanki157/google-plays-16-kb-page-size-requirements-what-every-android-developer-needs-to-know-43d3e335a46e?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/43d3e335a46e</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[native-code-optimization]]></category>
            <category><![CDATA[google-play-store-policy]]></category>
            <category><![CDATA[16-kb-page-size]]></category>
            <category><![CDATA[mobile-app-performance]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Thu, 04 Sep 2025 19:08:11 GMT</pubDate>
            <atom:updated>2025-09-04T19:08:11.810Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*wEQbFZK27HOcnnYtEzdH4Q.png" /></figure><p><em>A simple guide to understand and fix the “Your app is affected by Google Play’s 16 KB page size requirements” message</em></p><p>If you’re an Android developer who recently received an email from Google Play about “16 KB page size requirements,” don’t panic. This article will explain what it means and show you exactly how to fix it.</p><h3>What is This 16 KB Thing?</h3><p>Think of memory pages like pages in a book. Traditionally, Android devices used small “pages” of 4 KB to store information in memory. Now, newer Android devices are switching to larger “pages” of 16 KB to improve performance.</p><p><strong>The simple version:</strong> Your app needs to work with both old (4 KB) and new (16 KB) page sizes.</p><h3>Who is Affected?</h3><p>You’re affected if:</p><ul><li>Your app targets Android 15 (API level 35) or higher</li><li>Your app uses <strong>native code</strong> (C/C++ libraries)</li><li>You want to publish on Google Play after November 1, 2025</li></ul><h3>How to Check if Your App Uses Native Code</h3><p>Most developers aren’t sure if their app uses native code. Here’s how to check:</p><h3>Method 1: Use Android Studio’s APK Analyzer</h3><ol><li>Open Android Studio</li><li>Go to <strong>Build → Analyze APK</strong></li><li>Select your APK file</li><li>Look for a <strong>lib</strong> folder</li><li>If you see .so files inside, your app uses native code</li></ol><h3>Method 2: Check Your Dependencies</h3><p>If your app uses any of these popular libraries, you likely use native code:</p><ul><li>Firebase (messaging, analytics)</li><li>Google Maps</li><li>Camera/Image picker</li><li>Payment libraries (Stripe, PayPal)</li><li>WebView</li><li>Any game engine (Unity, Unreal)</li></ul><h3>The Fix: Step-by-Step Guide</h3><h3>Step 1: Update Your Build Tools</h3><p><strong>Update Android Gradle Plugin to 8.5.1 or higher:</strong></p><p>In your android/settings.gradle file:</p><pre>id &quot;com.android.application&quot; version &quot;8.5.1&quot; apply false</pre><p>In your gradle/wrapper/gradle-wrapper.properties:</p><pre>distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip</pre><h3>Step 2: Update Your NDK</h3><p>In your android/app/build.gradle:</p><pre>android {<br>    compileSdkVersion 35<br>    ndkVersion &quot;28.0.12433566&quot; // Add this line<br>    <br>    defaultConfig {<br>        // ... your existing config<br>        ndk {<br>            abiFilters &#39;arm64-v8a&#39;, &#39;armeabi-v7a&#39;, &#39;x86_64&#39;<br>        }<br>    }<br>}</pre><h3>Step 3: Update Dependencies</h3><p>Update all your native dependencies to their latest versions. For Flutter developers, run:</p><pre>flutter pub outdated<br>flutter pub upgrade</pre><h3>Step 4: Clean and Rebuild</h3><pre>flutter clean<br>flutter pub get<br>cd android<br>./gradlew clean<br>cd ..<br>flutter build apk --release</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*DIOhenuGH4c4HVg9WmLZCQ.png" /></figure><h3>For Different Frameworks</h3><h3>Flutter Developers</h3><p>Follow the steps above. Flutter handles most of the complexity for you once you update your tools.</p><h3>React Native Developers</h3><p>Update React Native to version 0.72 or higher, which includes 16 KB support by default.</p><h3>Native Android Developers</h3><p>If you’re writing native Android code, add these flags to your Android.mk:</p><pre>LOCAL_LDFLAGS += &quot;-Wl,-z,max-page-size=16384&quot;</pre><h3>Testing Your App</h3><p>After making changes, test your app:</p><ol><li><strong>Set up Android 15 Emulator</strong> with 16 KB page size</li><li><strong>Verify the page size</strong> with: adb shell getconf PAGE_SIZE (should return 16384)</li><li><strong>Test your app thoroughly</strong> especially features that use native libraries</li></ol><h3>What Happens if You Don’t Fix This?</h3><p>Starting November 1, 2025:</p><ul><li>New apps won’t be accepted on Google Play</li><li>App updates won’t be processed</li><li>Your app won’t work on newer Android devices with 16 KB page sizes</li></ul><h3>The Good News</h3><p>This change actually improves your app’s performance:</p><ul><li>3–30% faster app launches</li><li>4.5% less power consumption</li><li>Faster camera startup</li><li>Better overall system performance</li></ul><h3>Common Mistakes to Avoid</h3><ol><li><strong>Don’t ignore the deadline</strong> — November 1, 2025 is firm</li><li><strong>Don’t assume Java/Kotlin apps are safe</strong> — You might still use native libraries indirectly</li><li><strong>Don’t forget to test</strong> — Even after making changes, always test on a 16 KB environment</li><li><strong>Don’t use old NDK versions</strong> — Use NDK r28 or higher for automatic support</li></ol><h3>Quick Checklist</h3><ul><li>Check if your app uses native code</li><li>Update Android Gradle Plugin to 8.5.1+</li><li>Update NDK to r28+</li><li>Update all dependencies to latest versions</li><li>Clean and rebuild your project</li><li>Test on 16 KB emulator</li><li>Verify with zipalign tool</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*WcnsCqOLXPoT232uv3S0aA.png" /></figure><h3>Need Help?</h3><p>If you’re still confused or encounter errors:</p><ol><li>Check Android’s official documentation: <a href="https://developer.android.com/guide/practices/page-sizes">https://developer.android.com/guide/practices/page-sizes</a></li><li>Look for updated versions of your third-party libraries</li><li>Ask for help in developer communities like Stack Overflow</li><li>Consider consulting with experienced Android developers</li></ol><h3>Conclusion</h3><p>The 16 KB page size requirement might seem scary, but it’s actually a positive change that will make Android apps faster and more efficient. With the right tools (AGP 8.5.1+ and NDK r28+), most of the work is handled automatically.</p><p>Don’t wait until the deadline. Start updating your apps now to ensure they continue working on future Android devices and provide the best performance for your users.</p><p>Remember: This change is about making Android better for everyone. Embrace it, and your users will thank you for the improved performance.</p><p><em>Have you successfully updated your app for 16 KB page sizes? Share your experience in the comments below.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43d3e335a46e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Edge-to-Edge Is Now Mandatory in Android 16 — Migration Guide]]></title>
            <link>https://medium.com/@punitsolanki157/edge-to-edge-is-now-mandatory-in-android-16-migration-guide-2de4ec5ef042?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2de4ec5ef042</guid>
            <category><![CDATA[edge-to-edge]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android-16]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Mon, 25 Aug 2025 19:34:47 GMT</pubDate>
            <atom:updated>2025-08-25T19:34:47.028Z</atom:updated>
            <content:encoded><![CDATA[<h3>Edge-to-Edge Is Now Mandatory in Android 16 — Migration Guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*83Y-A40ihKdsgFGU93oirA.gif" /></figure><p>Until now, edge-to-edge layouts were something many Android devs skipped or patched quickly. But starting from <strong>Android 16 (API 36)</strong>, Google has made edge-to-edge <strong>mandatory</strong> — no more opting out.</p><p>If your app isn’t ready, it <strong>will break</strong> — not just on Android 16, but even on Android 15+, where the behavior is already enforced.</p><p>Let’s break this down simply.</p><h3>😬 What Can Go Wrong?</h3><p>If you don’t migrate properly, you might see:</p><ul><li>Buttons hidden under the system bar</li><li>Layouts shifting randomly</li><li>Keyboard overlapping input fields</li><li>Too much or too little padding</li><li>And overall — a broken user experience</li></ul><h3>✅ Step-by-Step Fix (for Jetpack Compose)</h3><h3>1. Enable Edge-to-Edge in Your Activity</h3><p>Call enableEdgeToEdge() in your onCreate:</p><pre>override fun onCreate(savedInstanceState: Bundle?) {<br>    enableEdgeToEdge()<br>    super.onCreate(savedInstanceState)<br>    setContent { MyApp() }<br>}</pre><p>This replaces hacks and handles navigation bar contrast for you.</p><h3>2. Stop Using SystemUiController (Accompanist)</h3><p>If you’re still using:</p><pre>val systemUiController = rememberSystemUiController()<br>SideEffect {<br>    systemUiController.setSystemBarsColor(Color.Transparent)<br>}</pre><p>Replace it with enableEdgeToEdge() as shown above. It&#39;s now the official way.</p><h3>3. Use Scaffold Correctly</h3><p>Jetpack Compose’s Scaffold helps manage insets for you:</p><pre>Scaffold { innerPadding -&gt;<br>    Box(modifier = Modifier.padding(innerPadding)) {<br>        // Your screen content here<br>    }<br>}</pre><p>Be careful if you use bottomBar. Padding might be doubled if not handled properly.</p><p><strong>Best practice:</strong> Use one top-level Scaffold for your NavHost instead of wrapping every screen.</p><pre>Scaffold { innerPadding -&gt;<br>    NavHost(<br>        modifier = Modifier.padding(bottom = innerPadding.calculateBottomPadding()),<br>        navController = navController,<br>        startDestination = ...<br>    ) {<br>        // Your code here<br>    }<br>}</pre><h3>4. Replace Old Bottom Sheets</h3><p>If you’re still using ModalBottomSheetLayout, switch to BottomSheetScaffold from Material 3:</p><pre>BottomSheetScaffold(<br>    scaffoldState = rememberBottomSheetScaffoldState(),<br>    sheetContent = { /* ... */ }<br>) { innerPadding -&gt;<br>    // Main content<br>}</pre><h3>⚙️ Migration Strategy</h3><h3>Option 1: Full Migration</h3><p>✅ Use a top-level Scaffold<br>✅ Replace all modal sheets<br>✅ Remove hardcoded paddings<br>✅ Handle all insets cleanly</p><p>📉 Requires effort, but gives long-term stability.</p><h3>Option 2: Quick Patch</h3><p>✅ Wrap only broken screens in Scaffold<br>✅ Fix padding manually<br>✅ Do it screen by screen</p><p>📉 Faster, but messy and temporary.</p><h3>👨‍💻 My Suggestion: Go Phased</h3><p><strong>Step 1:</strong> Patch the broken screens right now<br><strong>Step 2:</strong> Do a clean migration when possible<br><strong>Step 3:</strong> Follow best practices moving forward</p><h3>🧠 Developer Tips</h3><ul><li>Always use Scaffold as your layout root.</li><li>Pass innerPadding — never hardcode padding.</li><li>Replace old bottom sheets.</li><li>Avoid nesting multiple Scaffolds.</li><li>Test keyboard, split-screen, dark mode, and gesture navigation thoroughly.</li></ul><h3>✨ Final Note</h3><p>Android’s UI is evolving fast. Edge-to-edge isn’t a nice-to-have anymore — it’s a must. Migrate now and give your users a polished experience.</p><p>Let your layouts breathe edge-to-edge. 📱</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2de4ec5ef042" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android USB Developer Interview Prep]]></title>
            <link>https://medium.com/@punitsolanki157/android-usb-developer-interview-prep-76abd82acdea?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/76abd82acdea</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[mobile-app-interview-prep]]></category>
            <category><![CDATA[beginner-programming-tips]]></category>
            <category><![CDATA[usb-communication]]></category>
            <category><![CDATA[tech-career]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 09:35:26 GMT</pubDate>
            <atom:updated>2025-07-30T09:44:44.530Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRtzFJ6AnQmohLp5UX3oXQ.png" /></figure><p>If you’re preparing for an <strong>Android Developer role</strong> where <strong>USB communication</strong> is part of the job (yes, those IoT, hardware-integrated apps), this post is just for you! Whether you’re a <strong>college student</strong>, <strong>fresher</strong>, or <strong>self-taught dev</strong>, let me break it down in simple terms.</p><h3>🧠 What You’ll Learn</h3><ul><li>What USB host and accessory modes mean</li><li>How Android talks to USB devices</li><li>What code and permissions are needed</li><li>Common questions and simple answers</li><li>Quick revision!</li></ul><h3>🔌 USB Host vs Accessory Mode</h3><h3>👉 USB Host Mode</h3><p>Think of your Android phone as the <strong>boss</strong> (host). It controls and powers other USB devices like a keyboard, USB drive, or Arduino.</p><h3>👉 USB Accessory Mode</h3><p>Here, Android is like an <strong>employee</strong> (accessory), and some other device like a Raspberry Pi acts as the boss.</p><h3>📦 Important Classes You Should Know</h3><p>When working with USB in Android, these classes are your best friends:</p><ul><li>UsbManager: Manages all connected USB devices.</li><li>UsbDevice: Represents a connected USB device.</li><li>UsbInterface: Like a group of USB functions.</li><li>UsbEndpoint: Like a single pipe (input or output) inside the interface.</li><li>UsbDeviceConnection: Used to send or receive data.</li></ul><h3>✅ What Permission Is Needed?</h3><p>To talk to USB devices, Android needs your app to:</p><ol><li>Ask for user permission.</li><li>Add this in your AndroidManifest.xml:</li></ol><pre>&lt;uses-feature android:name=&quot;android.hardware.usb.host&quot; /&gt;</pre><ol><li>You also use UsbManager.requestPermission() in your code to pop up the permission box.</li></ol><h3>📡 How to Know If a USB Device Is Connected?</h3><p>Use a BroadcastReceiver with this:</p><pre>UsbManager.ACTION_USB_DEVICE_ATTACHED</pre><p>This helps your app know when a USB device is plugged in.</p><h3>📥 How Does Data Transfer Happen?</h3><ol><li>Find the connected device.</li><li>Ask for permission.</li><li>Open a connection.</li><li>Select the correct interface and endpoint.</li><li>Use bulkTransfer() or controlTransfer() to send/receive data.</li></ol><h3>⚙️ Types of Data Transfer</h3><ul><li><strong>Control Transfer</strong>: Used for setting up or configuring devices.</li><li><strong>Bulk Transfer</strong>: Ideal for large data transfers like files (e.g., USB drives).</li><li><strong>Interrupt Transfer</strong>: For quick, small data like keyboard or mouse signals.</li><li><strong>Isochronous Transfer</strong>: Used for continuous real-time data like audio or video streaming.</li></ul><h3>🧪 What’s bulkTransfer()?</h3><p>This is how you send or receive data. Example:</p><pre>connection.bulkTransfer(endpoint, buffer, buffer.size, timeout)</pre><ul><li>endpoint: Where you&#39;re sending/receiving</li><li>buffer: Data you&#39;re sending</li><li>timeout: How long to wait</li></ul><h3>🐞 Common Issues in USB Development</h3><ul><li>Forgetting to ask permission</li><li>Wrong endpoint/interface</li><li>Device not supported on older Android</li><li>USB cable issues (yes, really!)</li><li>App crashes if not checked properly</li></ul><h3>📁 Filter a Specific USB Device (like Arduino)</h3><p>To talk to specific devices, you can add a filter like this:</p><p><strong>res/xml/device_filter.xml</strong></p><pre>&lt;resources&gt;<br>  &lt;usb-device vendor-id=&quot;9025&quot; product-id=&quot;67&quot; /&gt;<br>&lt;/resources&gt;</pre><p>This helps Android identify your device automatically when it’s plugged in.</p><h3>📚 Questions &amp; Answers for Revision</h3><ul><li><strong>What is USB Host Mode?</strong><br> → Android acts as the main controller (host) and powers/accesses USB devices.</li><li><strong>What is USB Accessory Mode?</strong><br> → Android acts as a peripheral device, and the connected hardware is the host.</li><li><strong>Key Classes for USB in Android?</strong><br> → UsbManager, UsbDevice, UsbInterface, UsbEndpoint, UsbDeviceConnection.</li><li><strong>What methods are used for data transfer?</strong><br> → bulkTransfer() and controlTransfer().</li><li><strong>What permission setup is needed?</strong><br> → Use requestPermission() in code and define filters in the Android manifest.</li><li><strong>Types of data transfer available?</strong><br> → Control, Bulk, Interrupt, Isochronous.</li><li><strong>Tips for debugging USB in Android?</strong><br> → Check logcat logs, validate VendorId/ProductId, and ensure permission flow is handled properly.</li></ul><h3>✨ Final Tips for Interviews</h3><ul><li>Explain USB basics in simple terms.</li><li>Mention real devices you’ve worked with (Arduino, Barcode scanner, USB stick).</li><li>Talk about any debugging you did — that shows practical knowledge.</li><li>Always say you tested on different devices — it shows attention to compatibility.</li></ul><h3>🙌 Conclusion</h3><p>USB development in Android sounds complex, but once you understand the basics, it’s pretty fun and powerful. You get to work with <strong>real hardware</strong>, and that’s something not every developer gets to do!</p><p>If you’re preparing for interviews, start with the basics above, play with a USB device or emulator, and <strong>practice explaining things in your own words</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76abd82acdea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Important Update for Android Developers: Target API Level 35 is Now Mandatory!]]></title>
            <link>https://medium.com/@punitsolanki157/important-update-for-android-developers-target-api-level-35-is-now-mandatory-a10fc2485451?source=rss-85c57b882cf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a10fc2485451</guid>
            <category><![CDATA[android-15]]></category>
            <category><![CDATA[mobile-app-updates]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[google-play-policies]]></category>
            <category><![CDATA[target-api-level]]></category>
            <dc:creator><![CDATA[Punit Solanki]]></dc:creator>
            <pubDate>Wed, 02 Jul 2025 17:44:06 GMT</pubDate>
            <atom:updated>2025-07-02T17:45:42.723Z</atom:updated>
            <content:encoded><![CDATA[<p>Google has announced a new policy that all Android developers need to follow. If you publish or update Android apps on the Google Play Store, you need to be aware of this change.</p><h3>What’s the New Rule?</h3><p>Starting <strong>August 31, 2025</strong>, <strong>all apps</strong> on the Google Play Store <strong>must target Android 15 (API Level 35)</strong> if you want to push updates or publish new versions.</p><p>If you don’t update your app to target this API level by the deadline, you won’t be able to release updates — which means your users won’t get bug fixes or new features.</p><h3>Why is Google Doing This?</h3><p>This policy helps Google ensure that all apps on the Play Store follow the latest <strong>security, privacy, and performance</strong> standards. By targeting the latest Android version, your app stays compatible with new devices and provides a better user experience.</p><h3>Key Dates to Remember</h3><p>Target API 35 (Android 15) for all new updates and apps: <strong>August 31, 2025</strong></p><p>Request extension (if needed): <strong>Until November 1, 2025</strong></p><h3>Exceptions</h3><p>Some types of apps have a slightly different requirement:</p><ol><li><strong>Wear OS</strong> and <strong>Android TV</strong> apps can continue to target <strong>API Level 34 (Android 14)</strong>.</li><li>Internal or private apps not available to the public may have different rules.</li></ol><h3>What Should You Do Now?</h3><p>If you’re an Android developer, especially working on public apps, follow these steps:</p><ul><li><strong>Update your targetSdkVersion to 35</strong> in your build.gradle file.</li><li><strong>Test your app thoroughly</strong>, as Android 15 may have new behaviors or restrictions.</li><li><strong>Update libraries and dependencies</strong> to their latest versions that support API 35.</li><li>Check for <strong>new permission or background execution changes</strong> in Android 15 and update your code accordingly.</li><li>If you can’t meet the deadline, keep an eye on your <strong>Play Console</strong> for the extension request form.</li></ul><h3>Example for build.gradle</h3><pre>android {<br>    compileSdk 35<br>    defaultConfig {<br>        targetSdk 35<br>    }<br>}</pre><h3>🔗 Official Google Play Policy Page</h3><p>For more details, visit:<br> <a href="https://support.google.com/googleplay/android-developer/answer/11926878">https://support.google.com/googleplay/android-developer/answer/11926878</a></p><h3>Final Thoughts</h3><p>If you’re new to Android development, this is a great time to learn how to manage API levels in your projects. Keeping your apps updated with the latest Android versions not only ensures compatibility but also gives your users a safe and reliable experience.</p><h3>💬 Stay Connected</h3><ul><li>💼 <a href="https://about.me/punitsolanki">About Me</a></li><li>✍️ <a href="https://medium.com/@punitsolanki157">Follow me on Medium</a> for more Android updates and tips!</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a10fc2485451" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>