Friday , October 19 2018
Home / Android / Music library for android

Music library for android

music_library_banner

This is the music library for android. You can use this library by just download and import in your android project. In this library we provide you detailed list of song which is stored in your phone. Some methods are defined to get details of songs.

Follow these steps to use music library :-

Step 1:  Download the sample project from given link –

 

Step 2: Import this library (musicLib) in your android studio project from this sample project.

Step 3: Now in your activity or fragment write this line of code for get all songs list

Step 4: Finally the list of songs in “song_list”

Step 5: Some methods are defined to get song details

  1.    Song Title:   getSongTitle()
  2.    Song Artist:  getArtist()
  3.    Song Duration: getDuration()
  4.    Song Path: getSongPath()
  5.    Song Album: getAlbum()
  6.    Song Album Id: getAlbumId()

About admin

Check Also

Android Activity Launch Modes

Launch mode is an instruction for Android OS which specifies how the activity should be ...

Leave a Reply