summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-01-26 14:15:01 -0500
committerLeon Scroggins <scroggo@google.com>2010-02-04 16:37:55 -0500
commitfedc493cd810fbd4385efbd647ee70852870988f (patch)
tree7a32e6e925b30efe6c440f3f4b82c1bccd914888 /AndroidManifest.xml
parentc38909b6156331f8d739e0d6d7a9f7a0fae3d17c (diff)
downloadpackages_apps_Browser-fedc493cd810fbd4385efbd647ee70852870988f.tar.gz
packages_apps_Browser-fedc493cd810fbd4385efbd647ee70852870988f.tar.bz2
packages_apps_Browser-fedc493cd810fbd4385efbd647ee70852870988f.zip
Launch intents to open/delete downloads, and handle them in the browser.
Initial work for http://b/issue?id=2384554 : showing all downloads in the browser. On the BrowserDownloadPage, no longer rely on the filename, since once the Browser shows downloads from other applications, the filenames for those downloads will not be available, and this way all downloads are handled the same. Other applications which download files will need to handle the same Intents as OpenDownloadReceiver in order to open/delete them from the BrowserDownloadPage. OpenDownloadReceiver is also a necessary step towards moving the BrowserDownloadPage into its own application, if we ultimately decide to do that.
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 6ef43fa09..22c721dab 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -33,6 +33,7 @@
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
<uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/>
<uses-permission android:name="android.permission.BACKUP_DATA" />
+ <uses-permission android:name="android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS" />
<application android:name="Browser"
android:label="@string/application_name"
@@ -194,6 +195,13 @@
<!-- Makes .BrowserActivity the search target for any activity in Browser -->
<meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" />
+ <receiver android:name=".OpenDownloadReceiver">
+ <intent-filter>
+ <action android:name="android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED"/>
+ <action android:name="android.intent.action.DELETE"/>
+ <data android:scheme="content" android:mimeType="vnd.android.cursor.item/download"/>
+ </intent-filter>
+ </receiver>
</application>
</manifest>