MediaStore.Downloads
  public
  static
  final
  
  class
  MediaStore.Downloads
  
    extends Object
  
  
  
  
  
      implements
      
        MediaStore.DownloadColumns
      
  
  
| java.lang.Object | |
| ↳ | android.provider.MediaStore.Downloads | 
Collection of downloaded items.
Summary
Constants | |
|---|---|
String | 
        
          CONTENT_TYPE
          The MIME type for this table.  | 
    
Inherited constants | 
|---|
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.  | 
  
Public methods | |
|---|---|
        
        
        static
        
        
        Uri
     | 
  
    
      
      getContentUri(String volumeName)
      
      
        Get the content:// style URI for the downloads table on the given volume.  | 
  
        
        
        static
        
        
        Uri
     | 
  
    
      
      getContentUri(String volumeName, long id)
      
      
        Get the content:// style URI for a single row in the downloads table on the given volume.  | 
  
Inherited methods | |
|---|---|
Constants
CONTENT_TYPE
public static final String CONTENT_TYPE
The MIME type for this table.
Constant Value: "vnd.android.cursor.dir/download"
Fields
EXTERNAL_CONTENT_URI
public static final Uri EXTERNAL_CONTENT_URI
The content:// style URI for the "primary" external storage volume.
INTERNAL_CONTENT_URI
public static final Uri INTERNAL_CONTENT_URI
The content:// style URI for the internal storage.
Public methods
getContentUri
public static Uri getContentUri (String volumeName)
Get the content:// style URI for the downloads table on the given volume.
| Parameters | |
|---|---|
volumeName | 
        
          String: the name of the volume to get the URI for
 This value cannot be null. | 
      
| Returns | |
|---|---|
Uri | 
        the URI to the image media table on the given volume
 This value cannot be null. | 
      
getContentUri
public static Uri getContentUri (String volumeName, long id)
Get the content:// style URI for a single row in the downloads table on the given volume.
| Parameters | |
|---|---|
volumeName | 
        
          String: the name of the volume to get the URI for
 This value cannot be null. | 
      
id | 
        
          long: the download to get the URI for | 
      
| Returns | |
|---|---|
Uri | 
        the URI to the downloads table on the given volume
 This value cannot be null. |