Java Code Examples for android.provider.MediaStore.Audio.AlbumColumns#ARTIST

The following examples show how to use android.provider.MediaStore.Audio.AlbumColumns#ARTIST . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AlbumsFragment.java    From mobile-manager-tool with MIT License 5 votes vote down vote up
public void setupFragmentData(){
	mAdapter = new AlbumAdapter(getActivity(), R.layout.music_gridview_items, null,
            					new String[] {}, new int[] {}, 0); 
	mProjection = new String []{
            BaseColumns._ID, AlbumColumns.ALBUM, AlbumColumns.ARTIST, AlbumColumns.ALBUM_ART
    };
    mUri = Audio.Albums.EXTERNAL_CONTENT_URI;
    mSortOrder = Audio.Albums.DEFAULT_SORT_ORDER;
    mFragmentGroupId = 2;
    mType = TYPE_ALBUM;
}
 
Example 2
Source File: ArtistAlbumsFragment.java    From mobile-manager-tool with MIT License 5 votes vote down vote up
public void setupFragmentData(){
    mAdapter =new ArtistAlbumAdapter(getActivity(), R.layout.music_listview_items, null,
            									new String[] {}, new int[] {}, 0);
	mProjection = new String[] {
            BaseColumns._ID, AlbumColumns.ALBUM, AlbumColumns.NUMBER_OF_SONGS,
            AlbumColumns.ARTIST
    };
    mSortOrder =  Audio.Albums.DEFAULT_SORT_ORDER;
    long artistId = getArguments().getLong((BaseColumns._ID));
    mUri = Audio.Artists.Albums.getContentUri(EXTERNAL, artistId);
    mFragmentGroupId = 7;
    mType = TYPE_ALBUM;     
}