private void loadSongsArtist(long id) { PhoneMediaControl mPhoneMediaControl = PhoneMediaControl.getInstance(); PhoneMediaControl.setPhoneMediaControlInterface( new PhoneMediaControl.PhoneMediaControlInterface() { @Override public void loadSongsComplete(List<SongDetail> songsList_) { songList = songsList_; mSongsListAdapter.notifyDataSetChanged(); if (songList != null && songList.size() >= 1) { String contentURI = "content://media/external/audio/media/" + songList.get(0).getId() + "/albumart"; imageLoader.displayImage(contentURI, banner, options); } } }); mPhoneMediaControl.loadMusicListAsync(context, id, PhoneMediaControl.SongsLoadFor.ARTIST, ""); }
private void loadSongsAlbum(long id) { PhoneMediaControl.setPhoneMediaControlInterface( new PhoneMediaControl.PhoneMediaControlInterface() { @Override public void loadSongsComplete(List<SongDetail> songsList_) { songList = songsList_; mSongsListAdapter.notifyDataSetChanged(); if (songList != null && songList.size() >= 1) { displaySecondSubString.setText(songList.size() + " songs"); } } }); mPhoneMediaControl.loadMusicListAsync(context, id, PhoneMediaControl.SongsLoadFor.ALBUM, ""); String contentURI = "content://media/external/audio/albumart/" + id; imageLoader.displayImage(contentURI, banner, options); }