IT. Expert System.

Android Reference

MediaStore


android.provider

Class MediaStore



  • public final class MediaStore
    extends Object
    The Media provider contains meta data for all available media on both internal and external storage devices.
    • Field Detail

      • ACTION_MTP_SESSION_END

        public static final String ACTION_MTP_SESSION_END
        Broadcast Action: A broadcast to indicate the end of an MTP session with the host. This broadcast is only sent if MTP activity has modified the media database during the most recent MTP session.
        See Also:
        Constant Field Values
      • UNHIDE_CALL

        public static final String UNHIDE_CALL
        The method name used by the media scanner and mtp to tell the media provider to rescan and reclassify that have become unhidden because of renaming folders or removing nomedia files
        See Also:
        Constant Field Values
      • PARAM_DELETE_DATA

        public static final String PARAM_DELETE_DATA
        This is for internal use by the media scanner only. Name of the (optional) Uri parameter that determines whether to skip deleting the file pointed to by the _data column, when deleting the database entry. The only appropriate value for this parameter is "false", in which case the delete will be skipped. Note especially that setting this to true, or omitting the parameter altogether, will perform the default action, which is different for different types of media.
        See Also:
        Constant Field Values
      • INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH

        public static final String INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH
        An intent to perform a search for music media and automatically play content from the result when possible. This can be fired, for example, by the result of a voice recognition command to listen to music.

        Contains the SearchManager.QUERY extra, which is a string that can contain any type of unstructured music search, like the name of an artist, an album, a song, a genre, or any combination of these.

        Because this intent includes an open-ended unstructured search string, it makes the most sense for apps that can support large-scale search of music, such as services connected to an online database of music which can be streamed and played on the device.

        See Also:
        Constant Field Values
      • INTENT_ACTION_TEXT_OPEN_FROM_SEARCH

        public static final String INTENT_ACTION_TEXT_OPEN_FROM_SEARCH
        An intent to perform a search for readable media and automatically play content from the result when possible. This can be fired, for example, by the result of a voice recognition command to read a book or magazine.

        Contains the SearchManager.QUERY extra, which is a string that can contain any type of unstructured text search, like the name of a book or magazine, an author a genre, a publisher, or any combination of these.

        Because this intent includes an open-ended unstructured search string, it makes the most sense for apps that can support large-scale search of text media, such as services connected to an online database of books and/or magazines which can be read on the device.

        See Also:
        Constant Field Values
      • INTENT_ACTION_VIDEO_PLAY_FROM_SEARCH

        public static final String INTENT_ACTION_VIDEO_PLAY_FROM_SEARCH
        An intent to perform a search for video media and automatically play content from the result when possible. This can be fired, for example, by the result of a voice recognition command to play movies.

        Contains the SearchManager.QUERY extra, which is a string that can contain any type of unstructured video search, like the name of a movie, one or more actors, a genre, or any combination of these.

        Because this intent includes an open-ended unstructured search string, it makes the most sense for apps that can support large-scale search of video, such as services connected to an online database of videos which can be streamed and played on the device.

        See Also:
        Constant Field Values
      • EXTRA_MEDIA_ARTIST

        public static final String EXTRA_MEDIA_ARTIST
        The name of the Intent-extra used to define the artist
        See Also:
        Constant Field Values
      • EXTRA_MEDIA_ALBUM

        public static final String EXTRA_MEDIA_ALBUM
        The name of the Intent-extra used to define the album
        See Also:
        Constant Field Values
      • EXTRA_MEDIA_TITLE

        public static final String EXTRA_MEDIA_TITLE
        The name of the Intent-extra used to define the song title
        See Also:
        Constant Field Values
      • EXTRA_MEDIA_FOCUS

        public static final String EXTRA_MEDIA_FOCUS
        The name of the Intent-extra used to define the search focus. The search focus indicates whether the search should be for things related to the artist, album or song that is identified by the other extras.
        See Also:
        Constant Field Values
      • EXTRA_SCREEN_ORIENTATION

        public static final String EXTRA_SCREEN_ORIENTATION
        The name of the Intent-extra used to control the orientation of a ViewImage or a MovieView. This is an int property that overrides the activity's requestedOrientation.
        See Also:
        android.content.pm.ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, Constant Field Values
      • EXTRA_FULL_SCREEN

        public static final String EXTRA_FULL_SCREEN
        The name of an Intent-extra used to control the UI of a ViewImage. This is a boolean property that overrides the activity's default fullscreen state.
        See Also:
        Constant Field Values
      • EXTRA_SHOW_ACTION_ICONS

        public static final String EXTRA_SHOW_ACTION_ICONS
        The name of an Intent-extra used to control the UI of a ViewImage. This is a boolean property that specifies whether or not to show action icons.
        See Also:
        Constant Field Values
      • EXTRA_FINISH_ON_COMPLETION

        public static final String EXTRA_FINISH_ON_COMPLETION
        The name of the Intent-extra used to control the onCompletion behavior of a MovieView. This is a boolean property that specifies whether or not to finish the MovieView activity when the movie completes playing. The default value is true, which means to automatically exit the movie player activity when the movie completes playing.
        See Also:
        Constant Field Values
      • INTENT_ACTION_STILL_IMAGE_CAMERA

        public static final String INTENT_ACTION_STILL_IMAGE_CAMERA
        The name of the Intent action used to launch a camera in still image mode.
        See Also:
        Constant Field Values
      • INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE

        public static final String INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE
        The name of the Intent action used to launch a camera in still image mode for use when the device is secured (e.g. with a pin, password, pattern, or face unlock). Applications responding to this intent must not expose any personal content like existing photos or videos on the device. The applications should be careful not to share any photo or video with other applications or internet. The activity should use WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED to display on top of the lock screen while secured. There is no activity stack when this flag is used, so launching more than one activity is strongly discouraged.
        See Also:
        Constant Field Values
      • INTENT_ACTION_VIDEO_CAMERA

        public static final String INTENT_ACTION_VIDEO_CAMERA
        The name of the Intent action used to launch a camera in video mode.
        See Also:
        Constant Field Values
      • ACTION_IMAGE_CAPTURE

        public static final String ACTION_IMAGE_CAPTURE
        Standard Intent action that can be sent to have the camera application capture an image and return it.

        The caller may pass an extra EXTRA_OUTPUT to control where this image will be written. If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. This is useful for applications that only need a small image. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT.

        See Also:
        EXTRA_OUTPUT, Constant Field Values
      • ACTION_IMAGE_CAPTURE_SECURE

        public static final String ACTION_IMAGE_CAPTURE_SECURE
        Intent action that can be sent to have the camera application capture an image and return it when the device is secured (e.g. with a pin, password, pattern, or face unlock). Applications responding to this intent must not expose any personal content like existing photos or videos on the device. The applications should be careful not to share any photo or video with other applications or internet. The activity should use WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED to display on top of the lock screen while secured. There is no activity stack when this flag is used, so launching more than one activity is strongly discouraged.

        The caller may pass an extra EXTRA_OUTPUT to control where this image will be written. If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. This is useful for applications that only need a small image. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT.

        See Also:
        ACTION_IMAGE_CAPTURE, EXTRA_OUTPUT, Constant Field Values
      • ACTION_VIDEO_CAPTURE

        public static final String ACTION_VIDEO_CAPTURE
        Standard Intent action that can be sent to have the camera application capture a video and return it.

        The caller may pass in an extra EXTRA_VIDEO_QUALITY to control the video quality.

        The caller may pass in an extra EXTRA_OUTPUT to control where the video is written. If EXTRA_OUTPUT is not present the video will be written to the standard location for videos, and the Uri of that location will be returned in the data field of the Uri.

        See Also:
        EXTRA_OUTPUT, EXTRA_VIDEO_QUALITY, EXTRA_SIZE_LIMIT, EXTRA_DURATION_LIMIT, Constant Field Values
      • EXTRA_VIDEO_QUALITY

        public static final String EXTRA_VIDEO_QUALITY
        The name of the Intent-extra used to control the quality of a recorded video. This is an integer property. Currently value 0 means low quality, suitable for MMS messages, and value 1 means high quality. In the future other quality levels may be added.
        See Also:
        Constant Field Values
      • EXTRA_DURATION_LIMIT

        public static final String EXTRA_DURATION_LIMIT
        Specify the maximum allowed recording duration in seconds.
        See Also:
        Constant Field Values
      • EXTRA_OUTPUT

        public static final String EXTRA_OUTPUT
        The name of the Intent-extra used to indicate a content resolver Uri to be used to store the requested image or video.
        See Also:
        Constant Field Values
      • UNKNOWN_STRING

        public static final String UNKNOWN_STRING
        The string that is used when a media attribute is not known. For example, if an audio file does not have any meta data, the artist and album columns will be set to this value.
        See Also:
        Constant Field Values
      • MEDIA_SCANNER_VOLUME

        public static final String MEDIA_SCANNER_VOLUME
        Name of current volume being scanned by the media scanner.
        See Also:
        Constant Field Values
      • MEDIA_IGNORE_FILENAME

        public static final String MEDIA_IGNORE_FILENAME
        Name of the file signaling the media scanner to ignore media in the containing directory and its subdirectories. Developers should use this to avoid application graphics showing up in the Gallery and likewise prevent application sounds and music from showing up in the Music app.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MediaStore

        public MediaStore()
    • Method Detail

      • getMediaScannerUri

        public static Uri getMediaScannerUri()
        Uri for querying the state of the media scanner.
      • getVersion

        public static String getVersion(Context context)
        Get the media provider's version. Applications that import data from the media provider into their own caches can use this to detect that the media provider changed, and reimport data as needed. No other assumptions should be made about the meaning of the version.
        Parameters:
        context - Context to use for performing the query.
        Returns:
        A version string, or null if the version could not be determined.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 234 / 158691272. Delta: 0.03432 с