共用方式為


Intent.ActionMediaScannerScanFile Field

Definition

Broadcast Action: Request the media scanner to scan a file and add it to the media database.

[Android.Runtime.Register("ACTION_MEDIA_SCANNER_SCAN_FILE")]
public const string ActionMediaScannerScanFile;
[<Android.Runtime.Register("ACTION_MEDIA_SCANNER_SCAN_FILE")>]
val mutable ActionMediaScannerScanFile : string

Field Value

Implements

Attributes

Remarks

Broadcast Action: Request the media scanner to scan a file and add it to the media database.

The path to the file is contained in Intent#getData().

This member is deprecated. Callers should migrate to inserting items directly into MediaStore, where they will be automatically scanned after each mutation.

Java documentation for android.content.Intent.ACTION_MEDIA_SCANNER_SCAN_FILE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to