a5599ef636
Create documents manage mode to support Downloads and transient storage devices. Locks user into requested backend root, and forces file sizes on and sorting by last modified. Separate API constants for Documents versus Roots, and give concrete MIME types for roots. Treat null sizes as unknown. Documents are always enabled in list so that divider is drawn. Mark external storage file as writable. Bug: 10329983, 10332993, 10332952 Change-Id: I05f4fdf5b04041a38e1ba7fb30202a3b0c615bf6
64 lines
2.9 KiB
XML
64 lines
2.9 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.documentsui">
|
|
|
|
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
|
|
|
|
<application
|
|
android:label="@string/app_label"
|
|
android:supportsRtl="true">
|
|
|
|
<!-- TODO: allow rotation when state saving is in better shape -->
|
|
<activity
|
|
android:name=".DocumentsActivity"
|
|
android:finishOnCloseSystemDialogs="true"
|
|
android:excludeFromRecents="true"
|
|
android:theme="@android:style/Theme.Holo.Light"
|
|
android:screenOrientation="nosensor">
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.OPEN_DOCUMENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.OPENABLE" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter>
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.CREATE_DOCUMENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.OPENABLE" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter>
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.GET_CONTENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.OPENABLE" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter>
|
|
<!-- data expected to point at existing root to manage -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MANAGE_DOCUMENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="vnd.android.cursor.item/root" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".SettingsActivity"
|
|
android:title="@string/menu_settings"
|
|
android:theme="@android:style/Theme.Holo.Light"
|
|
android:exported="false" />
|
|
|
|
<provider
|
|
android:name=".RecentsProvider"
|
|
android:authorities="com.android.documentsui.recents"
|
|
android:exported="false" />
|
|
|
|
<!-- TODO: remove when we have real clients -->
|
|
<activity android:name=".TestActivity" android:enabled="false">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
</application>
|
|
</manifest>
|