• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Source for music app?

bradsh

Lurker
The stock Android 2.1 Music app has some issues which annoy me. I would like to improve upon it, and although I have no experience with android development, I do have plenty of experience with programming.

But I would like to use the stock app as a base to work off of. I know the Android OS is open source, but are the stock apps also? I can't find the source for the music app, and I don't really feel like reinventing the wheel when the stock app is basically what I want with only a few improvements.

So where is the source for the 2.1 music app? Or is it unavailable? Is there any source for any versions of the stock music app?
 
I just find it very hard to believe that there is no way to download the music app source without linux or OSX!
 
I also find that hard to believe - because it isn't true. :-)

You don't need linux or Mac OS if you just want to get to the source.
They provide links so you can access the repository.

For the source to the Music app, start here

android.git.kernel.org Git - platform/packages/apps/Music.git/tree

From there you can go into the src folder, then follow the links down to the com.android.music package. There it lists all the Java source files, and you click on the "raw" link to see the source in your browser.

If you want to download it all in one go rather than browse, then use the "snapshot" link from the page I linked to above. That will give you everything in a tar.gz file.
 
Thanks! This is exactly what I needed. Just perusing the source for a few minutes leads me to believe that the changes I want to make should be pretty easy to implement (mostly the way shuffle behavior operates. Seems that it currently uses a vector to store IDs of previously played tracks, but loses forward history when you go back a track. I plan to make it keep forward history and just keep track of where it is in the history when you move backwards in shuffle mode). It also seems that this is the version included in Android 2.0/2.1, which is also great. This should serve as a great way to both observe and become familiar with good java programming techniques.

I appreciate your help.
 
When I create a project in eclipse using the source code from the snapshot, I get a bunch of errors, such as MediaFile cannot be resolved. Could you please let me know how you got the source code to work? Thanks in advance.
 
Most of the stock Android app can't be built using the SDK since some the files are hidden from the SDK. You have to use the actual Android source (check out base.git)
 
Back
Top Bottom