OSDN Git Service

docs: Updating Scoped Directory Access docs for N DP3
authorDaniel Yu <dsyu@google.com>
Mon, 2 May 2016 17:11:51 +0000 (10:11 -0700)
committerDan Yu <dsyu@google.com>
Mon, 9 May 2016 21:59:22 +0000 (21:59 +0000)
Adding info about new getStorageVolume(File) API.

Bug: 28449136

Change-Id: I33f91a65cb9c926a9f1569bf4bea637f622c1e71

docs/html/preview/features/scoped-folder-access.jd

index 814692d..06dd665 100644 (file)
@@ -44,6 +44,12 @@ Use this intent to access external storage directories. To get a list of
 all available volumes, including removable media volumes, use
 <code>StorageManager.getVolumesList()</code>.</p>
 
+<p>If you have information about a specific file, use
+<code>StorageManager.getStorageVolume(File)</code> to get the
+<code>StorageVolume</code> that contains the file. Call
+<code>createAccessIntent()</code> on this <code>StorageVolume</code> to access
+the external storage directory for the file.</p>
+
 <p>
 On secondary volumes, such as external SD cards, pass in null when calling
 <code>StorageVolume.createAccessIntent()</code> to request access to the entire