1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2013 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<sample>
18    <name>StorageClient</name>
19    <group>Content</group>
20    <package>com.example.android.storageclient</package>
21    <!-- change minSdk if needed-->
22    <minSdk>16</minSdk>
23
24    <strings>
25        <intro>
26            <![CDATA[
27            Using the OPEN_DOCUMENT intent, a client app can access a list of Document Providers
28            on the device, and choose a file from any of them.
29            \n\nTo demonstrate this, click the button below to open up the Storage Access Framework
30            interface, and choose an image on your device.  It will be displayed in this app.
31            ]]>
32        </intro>
33        <sample_action>Show Me The Image</sample_action>
34    </strings>
35
36    <template src="base"/>
37    <template src="SingleView"/>
38    <common src="logger"/>
39    <common src="activities"/>
40
41    <metadata>
42        <status>PUBLISHED</status>
43        <categories>Content</categories>
44        <technologies>Android</technologies>
45        <languages>Java</languages>
46        <solutions>Mobile</solutions>
47        <level>INTERMEDIATE</level>
48        <icon>screenshots/icon-web.png</icon>
49        <screenshots>
50            <img>screenshots/main.png</img>
51        </screenshots>
52        <api_refs>
53            <android>android.content.Intent</android>
54        </api_refs>
55
56        <description>
57            <![CDATA[
58Using the OPEN_DOCUMENT intent, a client app can access a list of Document Providers
59on the device, and choose a file from any of them.
60            ]]>
61        </description>
62
63        <intro>
64            <![CDATA[
65This sample aims to help you understand the OPEN_DOCUMENT intent, which allows a client
66application to access a list of Document Providers on the devices and choose a file from
67any of them.
68
69This sample first fires an intent to spin up the "file chooser" UI and select an image.
70Then, given the content:// URI of the selected image, it shows it on the screen using a
71DialogFragment. It also grabs metadata for the document specified by URI and logs that to
72the screen.
73
74To demonstrate this, click the "Show me" button to open up the Storage Access Framework
75interface, and choose an image on your device.  It will be displayed in this app.
76            ]]>
77        </intro>
78    </metadata>
79
80</sample>
81