Knowledge about the audio library in Android

Source: Internet
Author: User

Android automatically scans files in external storage (SD card), obtains files of the audio type, analyzes the files, and stores the information data in mediastore. audio. in the audiocolumns table, the table structure is as follows:

The fields include:

Constants
String Album The album the audio file is from, if any

Type: Text

String Album_id The ID of the album the audio file is from, if any

Type: INTEGER (long)

String Album_key A non human readable key calculated from the album, used for searching, sorting and grouping

Type: Text

String Artist The artist who created the audio file, if any

Type: Text

String Artist_id The ID of the artist who created the audio file, if any

Type: INTEGER (long)

String Artist_key A non human readable key calculated from the artist, used for searching, sorting and grouping

Type: Text

String Bookmark The position, in MS, playback was at when playback for this file was last stopped.
String Composer The composer of the audio file, if any

Type: Text

String Duration The duration of the audio file in MS

Type: INTEGER (long)

String Is_alarm Non-zero if the audio file may be an alarm

Type: INTEGER (Boolean)

String Is_music Non-zero if the audio file is music

Type: INTEGER (Boolean)

String Is_notification Non-zero if the audio file may be a notification sound

Type: INTEGER (Boolean)

String Is_podcast Non-zero if the audio file is a podcast

Type: INTEGER (Boolean)

String Is_ringtone Non-zero if the audio file may be a ringtone

Type: INTEGER (Boolean)

String Title_key A non human readable key calculated from the title, used for searching, sorting and grouping

Type: Text

String Track The track number of this song on the album, if any.
String Year The year the audio file was recorded, if any

Type: integer

[Collapse]

Inherited Constants
From
Interfaceandroid. provider. basecolumns

String _ Count The Count of rows in a directory.
String _ Id The unique ID for a row.
From
Interfaceandroid. provider. mediastore. mediacolumns

String Data The data stream for the file

Type: Data Stream

String Date_added The time the file was added to the media provider units are seconds since 1970.
String Date_modified The time the file was last modified units are seconds since 1970.
String Display_name The display name of the file

Type: Text

String Mime_type The MIME type of the file

Type: Text

String Size The size of the file in bytes

Type: INTEGER (long)

String Title The title of the content

Type: Text

Mediastore. Audio. Media

Describes the URI of the mobile phone and the SD card audio file.

Fields
Public static final
Uri
External_content_uri The content: // style URI for the "primary" external storage volume.
Public static final
Uri
Internal_content_uri The content: // style URI for the internal storage.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.