是什么_ID和AUDIO_ID柱之间的区别? [英] What is difference between _ID and AUDIO_ID column?

查看:204
本文介绍了是什么_ID和AUDIO_ID柱之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我GOOGLE了它,搜查官方Android文档,并没有发现任何满足。我正在开发一个具有_ID和AUDIO_ID之间获得媒体存储和困惑的音乐播放器应用程序。

I've googled it, searched on the official android docs, and found nothing satisfying. I'm developing music player app that has access to Media Storage and confused between _ID and AUDIO_ID.

那两个之间的区别是什么? (如果有的话)

What are the differences between those two? (if any)

推荐答案

以下是不同的。

_ID

的唯一标识一行。

AUDIO_ID

音频文件的ID

区别

_ID是BASECOLUMNS数据库表的列名。它是在以下其他表来实现。

_ID is column name of BASECOLUMNS database table. It is implemented in following other tables.

Browser.BookmarkColumns,Browser.SearchColumns,CalendarContract.Attendees,CalendarContract.CalendarAlerts,CalendarContract.CalendarEntity,CalendarContract.Calendars,CalendarContract.Colors,CalendarContract.ColorsColumns,CalendarContract.Events,CalendarContract.EventsEntity

Browser.BookmarkColumns, Browser.SearchColumns, CalendarContract.Attendees, CalendarContract.CalendarAlerts, CalendarContract.CalendarEntity, CalendarContract.Calendars, CalendarContract.Colors, CalendarContract.ColorsColumns, CalendarContract.Events, CalendarContract.EventsEntity

和AUDIO_ID就是 MediaStore.Audio.AudioColumns ,其中一部分具有实施 BASECOLUMNS 表。

And AUDIO_ID is part of MediaStore.Audio.AudioColumns, which has implementation of BASECOLUMNS table.

MediaStore.Audio.AudioColumns :对于列在多个表中显示的音频文件。

MediaStore.Audio.AudioColumns : Columns for audio file that show up in multiple tables.

参考: _ID ,<一个href=\"http://developer.android.com/reference/android/provider/MediaStore.Audio.Playlists.Members.html\"相对=nofollow> AUDIO_ID

这篇关于是什么_ID和AUDIO_ID柱之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆