public static Cursor makeAlbumForArtistCursor(Context context, long artistID) { if (artistID == -1) return null; return context.getContentResolver() .query(MediaStore.Audio.Artists.Albums.getContentUri("external", artistID), new String[]{"_id", "album", "artist", "numsongs", "minyear"}, null, null, MediaStore.Audio.Albums.FIRST_YEAR); }
cursor = resolver.query(Artists.Albums.getContentUri("external", ident.id), AlbumQuery.PROJECTION, null, null, null); copyNotificationUri(result, Artists.Albums.getContentUri("external", ident.id)); while (cursor.moveToNext()) { includeAlbum(result, cursor);
Cursor cursor = PermissionHelper.query(context, MediaStore.Audio.Artists.Albums.getContentUri("external", artistId), MusicLibraryHelper.projectionAlbums, "", null, orderBy + " COLLATE NOCASE");
Cursor albumCursor = cr.query(MediaStore.Audio.Artists.Albums.getContentUri("external", artistInfo.getArtistId()), proj_art_to_album, null, null, null); if (albumCursor.moveToFirst()) { artistInfo.setAlbumArt(albumCursor.getString(albumCursor.getColumnIndex(MediaStore.Audio.Artists.Albums.ALBUM_ART)));
Cursor cursor = PermissionHelper.query(context, MediaStore.Audio.Artists.Albums.getContentUri("external", artistId), new String[]{MediaStore.Audio.Albums.ALBUM, MediaStore.Audio.Albums.ALBUM_KEY, MediaStore.Audio.Albums.FIRST_YEAR}, "", null, orderBy + " COLLATE NOCASE");
public static Cursor makeAlbumForArtistCursor(Context context, long artistID) { if (artistID == -1) return null; Cursor cursor = context.getContentResolver().query(MediaStore.Audio.Artists.Albums.getContentUri("external", artistID), new String[]{"_id", "album", "artist", "numsongs", "minyear"}, null, null, MediaStore.Audio.Albums.DEFAULT_SORT_ORDER); return cursor; }
public AlbumContainer(String id, String parentID, String title, String creator, String baseURL, Context ctx, String artistId) { super(id, parentID, title, creator, baseURL, ctx, null, null); this.artistId = artistId; if(artistId==null) uri = MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI; else uri = MediaStore.Audio.Artists.Albums.getContentUri("external", Integer.parseInt(artistId)); }
public static Cursor makeAlbumForArtistCursor(Context context, long artistID) { if (artistID == -1) return null; Cursor cursor = context.getContentResolver().query(MediaStore.Audio.Artists.Albums.getContentUri("external", artistID), new String[]{"_id", "album", "artist", "numsongs", "minyear"}, null, null, MediaStore.Audio.Albums.DEFAULT_SORT_ORDER); return cursor; }
@Override public Observable<Cursor> loadForArtist(final long artistId) { final RxCursorLoader.Query query = newParamsBuilder() .setContentUri(MediaStore.Audio.Artists.Albums.getContentUri( MediaStoreVolumeNames.EXTERNAL, artistId)) .setSelection(MediaStore.Audio.Media.IS_MUSIC + "!=0") .setSortOrder(MediaStore.Audio.Albums.FIRST_YEAR) .create(); return RxCursorLoader.create(mContentResolver, query); }