Skip to main content

Challenge: Code an Android music player in a weekend

I will start with a little background as to why I am doing this.  About a month ago I purchased a 500 GB Archos 5IT which is running 1.6.  I have quite a large music collection and I wanted to be able to listen to it all in my car so this seemed like the perfect player for me. 

"With storage sizes reaching up to 500 GB, your ARCHOS 5 internet tablet can store up to 600 movies, 290,000 songs or 5 million photos. No need to be frugal, store everything on your ARCHOS."

They advertise that it can hold 290k songs, but the first thing I discovered was that the archos music player only supported roughly 32k songs in its library.  The default 1.6 player was complete garbage as well so I begin to search for a decent music player that could support my needs. My choices were limited for 1.6 but I found one app that seemed good enough for the time being.  It was a folder based and had a good amount of customization.  Folder based navigation is great if you know exactly what you want, but it is not ideal if you are just browsing for something to listen to.  It ended up being my best option for 1.6 but I figured maybe there was something better for 2.0+

A week or so ago I got a new phone that ran 2.2 (HTC Thunderbolt) so the first thing I did was start trying out all the other 2.0+ music players out there.  I tried out maybe 10 different players and still that one for 1.6 was the best.  Some players did have some nice features, but not one had everything I wanted.  I also discovered that some of them (both free/paid) were complete garbage.  I know for a fact that I could write something better.

I've been wanting to learn the android sdk for awhile and now that I have some android devices, this is the perfect time to start.  A music player seems like a good starting project for me and I could eventually mold it into something that suits all my needs .  This week I started setting up a dev environment and went through the simple hello world tutorial.  I also started reading the docs online to get an idea what I would be working with.  I was quite impressed with the API google has provided and the other day I casually said to a friend something along the lines of "this android sdk is great.. from the looks of it I could probably hammer out a decent music player in a weekend".

So all that leads me to today.  The statement of making a music player in a weekend stuck with me and sounded like it would be a pretty good challenge for an experienced programmer like myself.  So naturally:

My plan is to track my progress on here throughout the weekend and see what I end up with sunday night.  If I fail no one will have to see this right? ha

So I sit here at roughly 4pm on friday with my autogenerated project that consists of:

public class GMMPMainActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

and looks like:


its go time

Popular posts from this blog

3.4.17 and 3.5 Beta 1 Released

I was not planning on putting out any more 3.4.x updates, however google refused to approve the 3.5 beta due to some policy updates that caused the existing 3.4.x version already released to no longer be compliant.  Therefore 3.4.15-3.4.17 are basically the work I've been doing on 3.5 for the last 16 months, but with all the new features disabled.  I would like to put them through more testing before enabling to the public, hence the beta. 3.4.17 (2024-10-25): Fixed crash on android 14+ trying to verify the unlocker 3.4.16 (2024-10-24): Fixed multi select in album details highlighting the wrong item 3.4.15 (2024-10-23): Update target api level to 34 Updated dependencies Manual scans are no longer ran in a foreground service due to google's new policies Last played time added to song info pop up Fixed issue where extra space was added in artists with numbers in name Increased full search limit from 100 to 10000 results Fixed issue with files missing tags showing up in the unkno...

3.5 Released!

 GoneMAD Music Player 3.5 is finally here after about a year and a half of development.  Most of the new additions are not enabled by default but I did include a new UI preset named 'bottom' that will use the new now playing layout and the new bottom navigation mode.  Enjoy! See the Beta 1 post for more information on the new capabilities Also I recently created a Bluesky account if you want to follow to get updates:  https://bsky.app/profile/gonemadsoftware.bsky.social 3.5.x: New: Added new bottom navigation mode Added new now playing layout 3 Added gradient background option to now playing layout 2 and 3 Added new details layout for artist/album/genre/etc(Change layout via: Customize -> Layout Menu -> Layout 2).  Enabled by default Added bottom nav UI preset (named 'bottom') Updates / Improvements: Updated dependencies Tweaked existing UI presets Improved startup time Fixes: Queue should now focus on playing song when opening / returning to queue Fixed s...

GoneMAD Music Player 4.0 released and is now free!

GoneMAD Music Player 4.0 is now fully rolled out!  After 14 years since initial release as being a paid app, I've decided to try something different and switch to being free with ads.  The market is completely different nowadays compared to the early 2010s.  Ads are everywhere and users typically do not want to pay for apps / games / etc.  But don't worry, those users who previously purchased the unlocker or in app purchase unlock will continue to get an ad free experience.  New users will also have the option to purchase an in app purchase to permanently remove ads.   Note: There is a bug with 4.0 where users with the standalone unlocker may see ads when they first upgrade.  You typically fix this by just force stopping the app and restarting.  Ads should not come back after that.  Alternatively you can contact gonemadsoftware@gmail.com and I can help you out as well.  I have no intention on making users who already paid see ads. W...