Android 10 MediaStore API changes
问题 Uri uri = MediaStore.Audio.Artists.Albums.getContentUri("external", artistId); String[] projection = new String[] {BaseColumns._ID}; Cursor cursor = mContext.getApplicationContext().getContentResolver().query (uri, projection, null, null, null); Prior to Android 10, BaseColumns._ID was returning album_id and now in 10, it returns some random Id. When I passed projection as null and retrieved all column names below are the column name that I get. This is in Android 10. [numsongs, artist,