1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="UTF-8"?> 2*90c8c64dSAndroid Build Coastguard Worker<!-- 3*90c8c64dSAndroid Build Coastguard Worker Copyright 2013 The Android Open Source Project 4*90c8c64dSAndroid Build Coastguard Worker 5*90c8c64dSAndroid Build Coastguard Worker Licensed under the Apache License, Version 2.0 (the "License"); 6*90c8c64dSAndroid Build Coastguard Worker you may not use this file except in compliance with the License. 7*90c8c64dSAndroid Build Coastguard Worker You may obtain a copy of the License at 8*90c8c64dSAndroid Build Coastguard Worker 9*90c8c64dSAndroid Build Coastguard Worker http://www.apache.org/licenses/LICENSE-2.0 10*90c8c64dSAndroid Build Coastguard Worker 11*90c8c64dSAndroid Build Coastguard Worker Unless required by applicable law or agreed to in writing, software 12*90c8c64dSAndroid Build Coastguard Worker distributed under the License is distributed on an "AS IS" BASIS, 13*90c8c64dSAndroid Build Coastguard Worker WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14*90c8c64dSAndroid Build Coastguard Worker See the License for the specific language governing permissions and 15*90c8c64dSAndroid Build Coastguard Worker limitations under the License. 16*90c8c64dSAndroid Build Coastguard Worker--> 17*90c8c64dSAndroid Build Coastguard Worker 18*90c8c64dSAndroid Build Coastguard Worker 19*90c8c64dSAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android" 20*90c8c64dSAndroid Build Coastguard Worker package="com.example.android.storageprovider" 21*90c8c64dSAndroid Build Coastguard Worker android:versionCode="1" 22*90c8c64dSAndroid Build Coastguard Worker android:versionName="1.0"> 23*90c8c64dSAndroid Build Coastguard Worker 24*90c8c64dSAndroid Build Coastguard Worker <!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle --> 25*90c8c64dSAndroid Build Coastguard Worker 26*90c8c64dSAndroid Build Coastguard Worker <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> 27*90c8c64dSAndroid Build Coastguard Worker <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 28*90c8c64dSAndroid Build Coastguard Worker 29*90c8c64dSAndroid Build Coastguard Worker <application 30*90c8c64dSAndroid Build Coastguard Worker android:allowBackup="true" 31*90c8c64dSAndroid Build Coastguard Worker android:label="@string/app_name" 32*90c8c64dSAndroid Build Coastguard Worker android:icon="@drawable/ic_launcher" 33*90c8c64dSAndroid Build Coastguard Worker android:theme="@style/MyAppTheme"> 34*90c8c64dSAndroid Build Coastguard Worker 35*90c8c64dSAndroid Build Coastguard Worker <activity 36*90c8c64dSAndroid Build Coastguard Worker android:name=".MainActivity" 37*90c8c64dSAndroid Build Coastguard Worker android:uiOptions="splitActionBarWhenNarrow" 38*90c8c64dSAndroid Build Coastguard Worker android:label="@string/app_name"> 39*90c8c64dSAndroid Build Coastguard Worker <intent-filter> 40*90c8c64dSAndroid Build Coastguard Worker <action android:name="android.intent.action.MAIN"/> 41*90c8c64dSAndroid Build Coastguard Worker <category android:name="android.intent.category.LAUNCHER"/> 42*90c8c64dSAndroid Build Coastguard Worker </intent-filter> 43*90c8c64dSAndroid Build Coastguard Worker </activity> 44*90c8c64dSAndroid Build Coastguard Worker 45*90c8c64dSAndroid Build Coastguard Worker <!--BEGIN_INCLUDE(provider_manifest)--> 46*90c8c64dSAndroid Build Coastguard Worker <!-- 47*90c8c64dSAndroid Build Coastguard Worker Declare the document provider class MyCloudProvider to the system. The MANAGE_DOCUMENTS 48*90c8c64dSAndroid Build Coastguard Worker permission belongs only to the Android system, ensuring this provider will never be used 49*90c8c64dSAndroid Build Coastguard Worker directly by another app. The provider must grant URI permissions in order to expose the 50*90c8c64dSAndroid Build Coastguard Worker specific documents(s) chosen, while not sharing all of its data by default. It must be 51*90c8c64dSAndroid Build Coastguard Worker exported to be visible outside the application, and it must include a filter with the intent 52*90c8c64dSAndroid Build Coastguard Worker "android.content.action.DOCUMENTS_PROVIDER" in order to be shown in the system document 53*90c8c64dSAndroid Build Coastguard Worker picker UI. 54*90c8c64dSAndroid Build Coastguard Worker --> 55*90c8c64dSAndroid Build Coastguard Worker <provider 56*90c8c64dSAndroid Build Coastguard Worker android:name="com.example.android.storageprovider.MyCloudProvider" 57*90c8c64dSAndroid Build Coastguard Worker android:authorities="com.example.android.storageprovider.documents" 58*90c8c64dSAndroid Build Coastguard Worker android:grantUriPermissions="true" 59*90c8c64dSAndroid Build Coastguard Worker android:exported="true" 60*90c8c64dSAndroid Build Coastguard Worker android:permission="android.permission.MANAGE_DOCUMENTS"> 61*90c8c64dSAndroid Build Coastguard Worker <intent-filter> 62*90c8c64dSAndroid Build Coastguard Worker <action android:name="android.content.action.DOCUMENTS_PROVIDER"/> 63*90c8c64dSAndroid Build Coastguard Worker </intent-filter> 64*90c8c64dSAndroid Build Coastguard Worker </provider> 65*90c8c64dSAndroid Build Coastguard Worker <!--END_INCLUDE(provider_manifest)--> 66*90c8c64dSAndroid Build Coastguard Worker 67*90c8c64dSAndroid Build Coastguard Worker </application> 68*90c8c64dSAndroid Build Coastguard Worker 69*90c8c64dSAndroid Build Coastguard Worker</manifest> 70