Build 1.0_r1(from source)

android.media
Class MediaFile

java.lang.Object
  extended by android.media.MediaFile

public class MediaFile
extends Object

MediaScanner helper class.


Nested Class Summary
(package private) static class MediaFile.MediaFileType
           
 
Field Summary
static int FILE_TYPE_3GPP
           
static int FILE_TYPE_3GPP2
           
static int FILE_TYPE_AMR
           
static int FILE_TYPE_AWB
           
static int FILE_TYPE_BMP
           
static int FILE_TYPE_GIF
           
static int FILE_TYPE_IMY
           
static int FILE_TYPE_JPEG
           
static int FILE_TYPE_M3U
           
static int FILE_TYPE_M4A
           
static int FILE_TYPE_M4V
           
static int FILE_TYPE_MID
           
static int FILE_TYPE_MP3
           
static int FILE_TYPE_MP4
           
static int FILE_TYPE_OGG
           
static int FILE_TYPE_PLS
           
static int FILE_TYPE_PNG
           
static int FILE_TYPE_SMF
           
static int FILE_TYPE_WAV
           
static int FILE_TYPE_WBMP
           
static int FILE_TYPE_WMA
           
static int FILE_TYPE_WMV
           
static int FILE_TYPE_WPL
           
static String sFileExtensions
           
static String UNKNOWN_STRING
           
 
Constructor Summary
MediaFile()
           
 
Method Summary
(package private) static void addFileType(String extension, int fileType, String mimeType)
           
static MediaFile.MediaFileType getFileType(String path)
           
static int getFileTypeForMimeType(String mimeType)
           
static boolean isAudioFileType(int fileType)
           
static boolean isImageFileType(int fileType)
           
static boolean isPlayListFileType(int fileType)
           
static boolean isVideoFileType(int fileType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sFileExtensions

public static String sFileExtensions

FILE_TYPE_MP3

public static final int FILE_TYPE_MP3
See Also:
Constant Field Values

FILE_TYPE_M4A

public static final int FILE_TYPE_M4A
See Also:
Constant Field Values

FILE_TYPE_WAV

public static final int FILE_TYPE_WAV
See Also:
Constant Field Values

FILE_TYPE_AMR

public static final int FILE_TYPE_AMR
See Also:
Constant Field Values

FILE_TYPE_AWB

public static final int FILE_TYPE_AWB
See Also:
Constant Field Values

FILE_TYPE_WMA

public static final int FILE_TYPE_WMA
See Also:
Constant Field Values

FILE_TYPE_OGG

public static final int FILE_TYPE_OGG
See Also:
Constant Field Values

FILE_TYPE_MID

public static final int FILE_TYPE_MID
See Also:
Constant Field Values

FILE_TYPE_SMF

public static final int FILE_TYPE_SMF
See Also:
Constant Field Values

FILE_TYPE_IMY

public static final int FILE_TYPE_IMY
See Also:
Constant Field Values

FILE_TYPE_MP4

public static final int FILE_TYPE_MP4
See Also:
Constant Field Values

FILE_TYPE_M4V

public static final int FILE_TYPE_M4V
See Also:
Constant Field Values

FILE_TYPE_3GPP

public static final int FILE_TYPE_3GPP
See Also:
Constant Field Values

FILE_TYPE_3GPP2

public static final int FILE_TYPE_3GPP2
See Also:
Constant Field Values

FILE_TYPE_WMV

public static final int FILE_TYPE_WMV
See Also:
Constant Field Values

FILE_TYPE_JPEG

public static final int FILE_TYPE_JPEG
See Also:
Constant Field Values

FILE_TYPE_GIF

public static final int FILE_TYPE_GIF
See Also:
Constant Field Values

FILE_TYPE_PNG

public static final int FILE_TYPE_PNG
See Also:
Constant Field Values

FILE_TYPE_BMP

public static final int FILE_TYPE_BMP
See Also:
Constant Field Values

FILE_TYPE_WBMP

public static final int FILE_TYPE_WBMP
See Also:
Constant Field Values

FILE_TYPE_M3U

public static final int FILE_TYPE_M3U
See Also:
Constant Field Values

FILE_TYPE_PLS

public static final int FILE_TYPE_PLS
See Also:
Constant Field Values

FILE_TYPE_WPL

public static final int FILE_TYPE_WPL
See Also:
Constant Field Values

UNKNOWN_STRING

public static final String UNKNOWN_STRING
See Also:
Constant Field Values
Constructor Detail

MediaFile

public MediaFile()
Method Detail

addFileType

static void addFileType(String extension,
                        int fileType,
                        String mimeType)

isAudioFileType

public static boolean isAudioFileType(int fileType)

isVideoFileType

public static boolean isVideoFileType(int fileType)

isImageFileType

public static boolean isImageFileType(int fileType)

isPlayListFileType

public static boolean isPlayListFileType(int fileType)

getFileType

public static MediaFile.MediaFileType getFileType(String path)

getFileTypeForMimeType

public static int getFileTypeForMimeType(String mimeType)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature