You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.8 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<sample>
<name>StorageClient</name>
<group>Content</group>
<package>com.example.android.storageclient</package>
<!-- change minSdk if needed-->
<minSdk>16</minSdk>
<strings>
<intro>
<![CDATA[
Using the OPEN_DOCUMENT intent, a client app can access a list of Document Providers
on the device, and choose a file from any of them.
\n\nTo demonstrate this, click the button below to open up the Storage Access Framework
interface, and choose an image on your device. It will be displayed in this app.
]]>
</intro>
<sample_action>Show Me The Image</sample_action>
</strings>
<template src="base"/>
<template src="SingleView"/>
<common src="logger"/>
<common src="activities"/>
<metadata>
<status>PUBLISHED</status>
<categories>Content</categories>
<technologies>Android</technologies>
<languages>Java</languages>
<solutions>Mobile</solutions>
<level>INTERMEDIATE</level>
<icon>screenshots/icon-web.png</icon>
<screenshots>
<img>screenshots/main.png</img>
</screenshots>
<api_refs>
<android>android.content.Intent</android>
</api_refs>
<description>
<![CDATA[
Using the OPEN_DOCUMENT intent, a client app can access a list of Document Providers
on the device, and choose a file from any of them.
]]>
</description>
<intro>
<![CDATA[
This sample aims to help you understand the OPEN_DOCUMENT intent, which allows a client
application to access a list of Document Providers on the devices and choose a file from
any of them.
This sample first fires an intent to spin up the "file chooser" UI and select an image.
Then, given the content:// URI of the selected image, it shows it on the screen using a
DialogFragment. It also grabs metadata for the document specified by URI and logs that to
the screen.
To demonstrate this, click the "Show me" button to open up the Storage Access Framework
interface, and choose an image on your device. It will be displayed in this app.
]]>
</intro>
</metadata>
</sample>