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 18 19<manifest xmlns:android="http://schemas.android.com/apk/res/android" 20 package="com.example.android.storageprovider" 21 android:versionCode="1" 22 android:versionName="1.0"> 23 24 <!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle --> 25 26 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> 27 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 28 29 <application 30 android:allowBackup="true" 31 android:label="@string/app_name" 32 android:icon="@drawable/ic_launcher" 33 android:theme="@style/MyAppTheme"> 34 35 <activity 36 android:name=".MainActivity" 37 android:uiOptions="splitActionBarWhenNarrow" 38 android:label="@string/app_name"> 39 <intent-filter> 40 <action android:name="android.intent.action.MAIN"/> 41 <category android:name="android.intent.category.LAUNCHER"/> 42 </intent-filter> 43 </activity> 44 45 <!--BEGIN_INCLUDE(provider_manifest)--> 46 <!-- 47 Declare the document provider class MyCloudProvider to the system. The MANAGE_DOCUMENTS 48 permission belongs only to the Android system, ensuring this provider will never be used 49 directly by another app. The provider must grant URI permissions in order to expose the 50 specific documents(s) chosen, while not sharing all of its data by default. It must be 51 exported to be visible outside the application, and it must include a filter with the intent 52 "android.content.action.DOCUMENTS_PROVIDER" in order to be shown in the system document 53 picker UI. 54 --> 55 <provider 56 android:name="com.example.android.storageprovider.MyCloudProvider" 57 android:authorities="com.example.android.storageprovider.documents" 58 android:grantUriPermissions="true" 59 android:exported="true" 60 android:permission="android.permission.MANAGE_DOCUMENTS"> 61 <intent-filter> 62 <action android:name="android.content.action.DOCUMENTS_PROVIDER"/> 63 </intent-filter> 64 </provider> 65 <!--END_INCLUDE(provider_manifest)--> 66 67 </application> 68 69</manifest> 70