<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Suriki</title>
    <description>The latest articles on DEV Community by Suriki (@suriki2652).</description>
    <link>https://dev.to/suriki2652</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4267604%2F0d0409f3-1cf2-4735-b333-5fa58d8b79bc.png</url>
      <title>DEV Community: Suriki</title>
      <link>https://dev.to/suriki2652</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/suriki2652"/>
    <language>en</language>
    <item>
      <title>I Rewrote My Flutter Radio App in Kotlin and Jetpack Compose. The Download Size Dropped by Almost 50</title>
      <dc:creator>Suriki</dc:creator>
      <pubDate>Thu, 26 Nov 2026 19:47:47 +0000</pubDate>
      <link>https://dev.to/suriki2652/i-rewrote-my-flutter-radio-app-in-kotlin-and-jetpack-compose-the-download-size-dropped-by-almost-50-4ch0</link>
      <guid>https://dev.to/suriki2652/i-rewrote-my-flutter-radio-app-in-kotlin-and-jetpack-compose-the-download-size-dropped-by-almost-50-4ch0</guid>
      <description>&lt;h1&gt;
  
  
  I Replaced Flutter with Native Android for My Tamil Radio App — Here's What Changed
&lt;/h1&gt;

&lt;p&gt;What happens when you replace Flutter with native Android development for a Tamil radio app?&lt;/p&gt;

&lt;p&gt;I wanted to find out.&lt;/p&gt;

&lt;p&gt;I build small Android radio apps. My main project is &lt;strong&gt;Tamil Vanoli (தமிழ் வானொலி)&lt;/strong&gt;. The idea is simple: open the app, choose a radio station, and listen to music. No complicated features, no unnecessary screens. Just radio.&lt;/p&gt;

&lt;p&gt;For years, I built these apps with Flutter, and honestly, it served me well.&lt;/p&gt;

&lt;p&gt;Having a single codebase was convenient. Hot reload made development faster, and creating regional versions of the app — Hindi, Malayalam, and others — was relatively painless.&lt;/p&gt;

&lt;p&gt;But last month, I made a significant decision: I rewrote the entire application in &lt;strong&gt;Kotlin with Jetpack Compose&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Why leave a framework that had worked well for years? Was native Android development actually worth the effort?&lt;/p&gt;

&lt;p&gt;The answer became clearer after looking at the numbers.&lt;/p&gt;

&lt;p&gt;In this article, I'll walk through why I made the switch, how I approached the rewrite, the architecture I ended up with, and what changed in the final APK and app experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I Started Questioning Flutter
&lt;/h2&gt;

&lt;p&gt;It wasn't one major problem that pushed me toward Kotlin. It was several smaller frustrations that gradually added up.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Audio Playback Is the Entire Product
&lt;/h3&gt;

&lt;p&gt;A radio app isn't just another application with a few screens.&lt;/p&gt;

&lt;p&gt;Audio playback is its core functionality. Everything else comes second.&lt;/p&gt;

&lt;p&gt;I needed reliable background playback, media notifications, lock-screen controls, Bluetooth integration, Android Auto support, and sensible recovery when an internet connection temporarily disappeared.&lt;/p&gt;

&lt;p&gt;With Flutter, most of these capabilities depended on plugins.&lt;/p&gt;

&lt;p&gt;Plugins are useful, but every additional plugin introduces another layer between the application and Android's native APIs. When something goes wrong, debugging across those layers can become frustrating.&lt;/p&gt;

&lt;p&gt;I wanted more direct control over Android's media functionality.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Application Size Matters
&lt;/h3&gt;

&lt;p&gt;Many of my listeners use budget Android devices. Storage space isn't always plentiful, and mobile data connections can be slow or unreliable.&lt;/p&gt;

&lt;p&gt;I had been trying to reduce the download size since version 3.3.1.&lt;/p&gt;

&lt;p&gt;One limitation was difficult to avoid: the Flutter engine and compiled Dart code contributed approximately &lt;strong&gt;7.5 MB of overhead&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That was a substantial fixed cost for an application whose primary job was streaming internet radio.&lt;/p&gt;

&lt;p&gt;I wanted to see how much smaller the application could become without carrying the Flutter runtime.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Startup Time and Initialization
&lt;/h3&gt;

&lt;p&gt;Flutter needs to initialize its engine before rendering the application interface.&lt;/p&gt;

&lt;p&gt;For a lightweight radio application, I wanted to minimize the amount of work required before users could interact with the home screen.&lt;/p&gt;

&lt;p&gt;It wasn't necessarily a deal-breaker, but it was another reason to explore native development.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Native SDK Integration
&lt;/h3&gt;

&lt;p&gt;The application also uses advertising and consent SDKs, including AdMob and Meta.&lt;/p&gt;

&lt;p&gt;These are native Android libraries.&lt;/p&gt;

&lt;p&gt;In Flutter, integrating them meant maintaining platform-channel communication and additional plugin dependencies.&lt;/p&gt;

&lt;p&gt;With Kotlin, I could integrate these SDKs directly into the Android application.&lt;/p&gt;

&lt;p&gt;Eventually, I found myself asking a straightforward question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If this is an Android-only application that depends heavily on Android features, why am I adding another framework between the application and the platform?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That question started the rewrite.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Most Important Rule: Don't Break Existing Users
&lt;/h2&gt;

&lt;p&gt;Before writing any Kotlin code, I established one non-negotiable requirement:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Version 4.0.0 must behave exactly like version 3.4.0.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I wasn't planning a redesign or a new product experience. I wanted the same application, rebuilt using a different technology stack.&lt;/p&gt;

&lt;p&gt;That meant preserving:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Existing screens and navigation.&lt;/li&gt;
&lt;li&gt;Advertising behavior and placement rules.&lt;/li&gt;
&lt;li&gt;User preferences and theme settings.&lt;/li&gt;
&lt;li&gt;Favorite radio stations.&lt;/li&gt;
&lt;li&gt;Recently played stations.&lt;/li&gt;
&lt;li&gt;Existing application behavior.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also retained the original package name and signing key.&lt;/p&gt;

&lt;p&gt;This was important because I wanted the Kotlin version to be distributed as a regular Play Store update rather than requiring users to uninstall the old application and install a new one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Migrating Existing User Data
&lt;/h2&gt;

&lt;p&gt;The most sensitive part of the migration was user data.&lt;/p&gt;

&lt;p&gt;The Flutter version stored application preferences and favorites using its existing storage mechanisms. The new Kotlin application needed to understand that old data and migrate it safely.&lt;/p&gt;

&lt;p&gt;On the first launch, the new application reads the previous Flutter app's stored data and imports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Favorite stations.&lt;/li&gt;
&lt;li&gt;Recently played stations.&lt;/li&gt;
&lt;li&gt;Theme preferences.&lt;/li&gt;
&lt;li&gt;Rate-app prompt state.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This was a particularly important step.&lt;/p&gt;

&lt;p&gt;Imagine opening a radio app after an update and discovering that all your favorite stations have disappeared.&lt;/p&gt;

&lt;p&gt;That's not the kind of first impression I wanted version 4.0.0 to create.&lt;/p&gt;

&lt;p&gt;I treated migration as a core feature of the rewrite, not an afterthought.&lt;/p&gt;

&lt;h2&gt;
  
  
  The New Architecture: Kotlin, Compose, and Modular Development
&lt;/h2&gt;

&lt;p&gt;Instead of moving everything into one large Android module, I decided to organize the application into smaller, independently maintainable modules.&lt;/p&gt;

&lt;p&gt;Here's how the project is structured:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Module&lt;/th&gt;
&lt;th&gt;Responsibility&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;core:model&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Plain Kotlin models without Android dependencies&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;core:data&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Retrofit, Room, DataStore, and repository implementations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;core:player&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Media3 integration and audio playback&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;core:ads&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;AdMob, Meta, and consent management&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;feature:browse&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Radio station browsing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;feature:player&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Now-playing interface and playback controls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;feature:settings&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Application settings and preferences&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I also use &lt;strong&gt;Hilt&lt;/strong&gt; for dependency injection.&lt;/p&gt;

&lt;p&gt;The overall architecture follows a straightforward approach:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Room acts as the local source of truth for cached station data.&lt;/li&gt;
&lt;li&gt;Repositories manage data access.&lt;/li&gt;
&lt;li&gt;ViewModels expose UI state.&lt;/li&gt;
&lt;li&gt;Jetpack Compose observes that state and renders the interface.&lt;/li&gt;
&lt;li&gt;Media3 handles playback independently of the UI.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Room Database: No More Waiting for the Network
&lt;/h3&gt;

&lt;p&gt;One of the most noticeable improvements came from introducing Room.&lt;/p&gt;

&lt;p&gt;Previously, the Flutter version relied more heavily on fetching station data before displaying the home screen. This meant users could encounter a loading indicator while waiting for the network request.&lt;/p&gt;

&lt;p&gt;Now, station information is cached locally in Room.&lt;/p&gt;

&lt;p&gt;When the application launches, the home screen can immediately display the previously cached station list while network updates happen separately.&lt;/p&gt;

&lt;p&gt;It's a small architectural change, but it makes the application feel much more responsive.&lt;/p&gt;

&lt;h3&gt;
  
  
  Media3: Taking Control of Audio Playback
&lt;/h3&gt;

&lt;p&gt;The biggest technical improvement was moving audio playback to Android's Media3 library.&lt;/p&gt;

&lt;p&gt;Instead of depending on multiple Flutter plugins to handle different Android media features, I now have a dedicated playback layer.&lt;/p&gt;

&lt;p&gt;Media3 gives me a unified approach to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Background audio playback.&lt;/li&gt;
&lt;li&gt;Media notifications.&lt;/li&gt;
&lt;li&gt;Lock-screen controls.&lt;/li&gt;
&lt;li&gt;Bluetooth media buttons.&lt;/li&gt;
&lt;li&gt;Android Auto integration.&lt;/li&gt;
&lt;li&gt;Playback state management.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also simplified the handling of interrupted streams.&lt;/p&gt;

&lt;p&gt;Previously, recovering from a failed stream could involve several layers of plugin behavior.&lt;/p&gt;

&lt;p&gt;Now, I use a small retry policy:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Retry after one second.&lt;/li&gt;
&lt;li&gt;If that fails, retry after three seconds.&lt;/li&gt;
&lt;li&gt;If playback still fails, notify the user.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Because the logic lives in native Kotlin code, I can write proper unit tests around the retry behavior.&lt;/p&gt;

&lt;p&gt;That makes the playback implementation easier to understand and maintain.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Benchmark That Surprised Me: Download Size Dropped Almost 50%
&lt;/h2&gt;

&lt;p&gt;This was the result I was most interested in measuring.&lt;/p&gt;

&lt;p&gt;The application went from approximately &lt;strong&gt;14.5 MB to 7.7 MB&lt;/strong&gt; on the reference device when version 4.0.0 was released.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz2o7bpw2ur7n7bkisvq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faz2o7bpw2ur7n7bkisvq.png" alt=" " width="720" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's a reduction of approximately &lt;strong&gt;47%&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The change was immediately visible in the Google Play Console. I watched the download-size graph drop on the 19th and refreshed the page several times because I initially wondered whether I was looking at a reporting glitch.&lt;/p&gt;

&lt;h3&gt;
  
  
  Understanding Where the Size Reduction Came From
&lt;/h3&gt;

&lt;p&gt;The interesting part wasn't just the final number. It was understanding why it happened.&lt;/p&gt;

&lt;p&gt;In the Flutter builds, approximately 7.5 MB came from native libraries, including the Flutter engine and compiled Dart code.&lt;/p&gt;

&lt;p&gt;In the Kotlin version, that entire Flutter-related overhead disappeared.&lt;/p&gt;

&lt;p&gt;Of course, native Android development isn't free of dependencies.&lt;/p&gt;

&lt;p&gt;The Kotlin application uses Jetpack Compose, Media3, and other Android libraries. The code-related portion actually increased slightly, from approximately 6.4 MB to 7.5 MB.&lt;/p&gt;

&lt;p&gt;But that increase was nowhere near the overhead removed by eliminating the Flutter runtime.&lt;/p&gt;

&lt;p&gt;The result was a much smaller application overall.&lt;/p&gt;

&lt;h3&gt;
  
  
  More Features Without Increasing Download Size
&lt;/h3&gt;

&lt;p&gt;Another interesting observation came from the next two releases.&lt;/p&gt;

&lt;p&gt;Versions 4.1.0 and 4.1.1 introduced several additional features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A home-screen widget.&lt;/li&gt;
&lt;li&gt;A Quick Settings tile.&lt;/li&gt;
&lt;li&gt;Android Auto folder browsing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Yet the application download size remained practically unchanged.&lt;/p&gt;

&lt;p&gt;This was particularly satisfying.&lt;/p&gt;

&lt;p&gt;I had spent months trying to save individual megabytes in the Flutter version. After moving to Kotlin, I finally had more room to add functionality without constantly worrying about application size.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; These figures are measurements from my application's reported Google Play download-size data, not a universal comparison between Flutter and Kotlin applications.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Was Rewriting Everything Actually Worth It?
&lt;/h2&gt;

&lt;p&gt;Looking back, I would say yes.&lt;/p&gt;

&lt;p&gt;But the benefits weren't limited to the download size.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Improved for Users?
&lt;/h3&gt;

&lt;p&gt;The most obvious improvement is the smaller download.&lt;/p&gt;

&lt;p&gt;Going from roughly 14.5 MB to 7.7 MB makes a difference for users with limited data plans or slower internet connections.&lt;/p&gt;

&lt;p&gt;Playback integration is also more straightforward.&lt;/p&gt;

&lt;p&gt;The application now supports Android Auto, and Bluetooth play controls can resume the last station even after the application has been killed.&lt;/p&gt;

&lt;p&gt;The home-screen widget and Quick Settings tile also provide quicker access to radio playback without requiring users to open the application every time.&lt;/p&gt;

&lt;p&gt;These are meaningful improvements for an application designed around listening to audio.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Improved for Me as a Developer?
&lt;/h3&gt;

&lt;p&gt;The biggest benefit is having direct control over Android functionality.&lt;/p&gt;

&lt;p&gt;I no longer need to maintain as much platform-channel glue for features that are fundamentally Android-specific.&lt;/p&gt;

&lt;p&gt;The modular architecture also makes it easier to isolate functionality, test individual components, and introduce new features.&lt;/p&gt;

&lt;p&gt;There's another benefit I didn't initially expect.&lt;/p&gt;

&lt;p&gt;I maintain multiple regional radio applications. Now that Tamil Vanoli is built on the new Kotlin foundation, I can use it as the template for the other applications.&lt;/p&gt;

&lt;p&gt;Instead of manually copying and modifying large amounts of code, I use a script to carry changes across the sibling applications.&lt;/p&gt;

&lt;p&gt;That makes maintaining the entire app family considerably easier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should You Switch from Flutter to Native Android?
&lt;/h2&gt;

&lt;p&gt;I wouldn't recommend rewriting every Flutter application just because Kotlin is native.&lt;/p&gt;

&lt;p&gt;Flutter is an excellent framework, and for many applications, it is still a perfectly sensible choice.&lt;/p&gt;

&lt;p&gt;If your application primarily consists of screens, forms, API calls, and conventional UI interactions, Flutter can be an excellent development platform.&lt;/p&gt;

&lt;p&gt;But my experience taught me something important:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The more deeply your application depends on platform-specific functionality, the more valuable native development can become.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In my case, audio playback, background services, notifications, Bluetooth integration, Android Auto, and native advertising SDKs were central to the product.&lt;/p&gt;

&lt;p&gt;I was spending time working around the framework instead of building the actual application.&lt;/p&gt;

&lt;p&gt;Moving to Kotlin and Jetpack Compose simplified that relationship.&lt;/p&gt;

&lt;p&gt;The smaller download size was a great bonus, but having better control over the Android platform was the bigger reason I made the switch.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Apps: Tamil, Hindi, and Malayalam Radio
&lt;/h2&gt;

&lt;p&gt;The Kotlin rewrite started with Tamil Vanoli, but the same foundation is now being used across my regional radio applications.&lt;/p&gt;

&lt;p&gt;You can check them out here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.tamilfmradio.tamilvanoli&amp;amp;referrer=utm_source%3Ddev.to%26utm_medium%3Dreferral"&gt;Tamil Vanoli (தமிழ் வானொலி)&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://play.google.com/store/apps/details?id=hindi.radio.fm.songs.hindiradio&amp;amp;referrer=utm_source%3Ddev.to%26utm_medium%3Dreferral"&gt;Hindi Radio&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://play.google.com/store/apps/details?id=malayalam.radio.fm.songs.malayalamradio&amp;amp;referrer=utm_source%3Ddev.to%26utm_medium%3Dreferral"&gt;Malayalam Radio&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All three share the same Kotlin codebase foundation, with their own station lists and visual identity.&lt;/p&gt;

&lt;p&gt;My Website: &lt;a href="https://awestrucktech.github.io/" rel="noopener noreferrer"&gt;AwestruckTech&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Rewriting Tamil Vanoli from Flutter to Kotlin was a bigger undertaking than I initially expected.&lt;/p&gt;

&lt;p&gt;There were migration challenges, architectural decisions, and plenty of opportunities to break existing functionality.&lt;/p&gt;

&lt;p&gt;But the result was worth it.&lt;/p&gt;

&lt;p&gt;The application is now approximately half its previous download size, has better integration with Android media features, and has an architecture that is easier for me to extend and maintain.&lt;/p&gt;

&lt;p&gt;If there's one lesson I'd take away from this experience, it's this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choose your technology based on what your application actually needs, not just what makes the initial development easier.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Flutter was the right choice when I started. Kotlin became the better choice as the application evolved.&lt;/p&gt;

&lt;p&gt;I'd genuinely love to hear from other Android developers:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Have you ever migrated an existing Flutter application to native Kotlin? What surprised you most during the process?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>androiddev</category>
      <category>android</category>
      <category>kotlin</category>
      <category>flutter</category>
    </item>
  </channel>
</rss>
