1. Download our Official Android App: Forums for Android!

Apps Source for music app?

Discussion in 'Android Development' started by bradsh, Feb 13, 2010.

  1. bradsh

    bradsh Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Feb 13, 2010

    Feb 13, 2010
    3
    0
    5
    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?
     

    Advertisement

  2. markb

    markb Well-Known Member
    Rank:
    None
    Points:
    63
    Posts:
    148
    Joined:
    Sep 14, 2009

    Sep 14, 2009
    148
    26
    63
    Software Developer (Java, C, Web, Unix)
    Birmingham, UK
    I haven't downloaded the source myself, but a quick google found this page:

    Get source (Android Open Source Project)

    And from that page it says:

    That Project layout page includes a list of application packages that includes "Music".

    Regards,
    Mark
     
  3. bradsh

    bradsh Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Feb 13, 2010

    Feb 13, 2010
    3
    0
    5
    I just find it very hard to believe that there is no way to download the music app source without linux or OSX!
     
  4. markb

    markb Well-Known Member
    Rank:
    None
    Points:
    63
    Posts:
    148
    Joined:
    Sep 14, 2009

    Sep 14, 2009
    148
    26
    63
    Software Developer (Java, C, Web, Unix)
    Birmingham, UK
    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.
     
  5. bradsh

    bradsh Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Feb 13, 2010

    Feb 13, 2010
    3
    0
    5
    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.
     
  6. iduke

    iduke Lurker
    Rank:
    None
    Points:
    5
    Posts:
    5
    Joined:
    Jan 4, 2010

    Jan 4, 2010
    5
    0
    5
    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.
     
  7. Zero

    Zero Newbie
    Rank:
    None
    Points:
    16
    Posts:
    11
    Joined:
    Oct 23, 2009

    Oct 23, 2009
    11
    2
    16
    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)
     

Share This Page

Loading...