One wrong activity caused me 10+ hours of debugging

One wrong activity caused me 10+ hours of debugging

BackerLeader 9 58 104
calendar_todayschedule1 min read

The music app I vibe coded is working fine but I wanted to improve it. So I decided to add some extra features like playing in the background so that I can control playback from notification bar. Cool right ?

I also wanted to refactor my code because It would give me huge pain if I scale it just from here. I started working on it, I fixed all errors of refactoring but when I say

flutter run

It gives me an error which forced me scratch my head for days.

The Activity class declared in your AndroidManifest.xml is wrong...

Now I'm trying to fix things in xml file which I needed to actually make change in MainActivity.kt . The only thing I needed to replace below code

class MainActivity: FlutterFragmentActivity() {}

with this

class MainActivity: AudioServiceFragmentActivity() {}

Finally I'm a bit relieved. I did learn a lot as I actually reverse engineered code, refactored so much just to find answers. Now I really need a break lol.....................

2 Comments

0 votes
0 votes
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

React Native Quote Audit - USA

kajolshah - Mar 2

After facing weird permission issues, I built my own music app in 6 hours.

yogirahul - Jul 14, 2025

UI issues are beautiful.....

yogirahul - Jul 25, 2025

5 React Native Errors That Cost Me Hours (And How I Finally Fixed Them)

Asta Silva - May 7

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelskiverified - Apr 23
chevron_left
7k Points171 Badges
Indiayogicode.org
35Posts
98Comments
8Connections
AI Engineer focused on building applications & writing practical guides on coding and machine learning.

Commenters (This Week)

2 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!