AndroidManifest.xml revision 04b2e8e1688a869904ecedafa58349b14a73ba48
1<!-- 2/* //device/apps/Browser/AndroidManifest.xml 3** 4** Copyright 2006, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License"); 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19 20<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.browser"> 21 22 <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" /> 23 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> 24 <uses-permission android:name="android.permission.ACCESS_DOWNLOAD_MANAGER"/> 25 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> 26 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 27 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> 28 <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/> 29 <uses-permission android:name="android.permission.INTERNET" /> 30 <uses-permission android:name="android.permission.WAKE_LOCK"/> 31 <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/> 32 <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"/> 33 34 <application android:name="Browser" 35 android:label="@string/application_name" 36 android:icon="@drawable/ic_launcher_browser" 37 android:taskAffinity="android.task.browser" > 38 39 <provider android:name="BrowserProvider" 40 android:authorities="browser" 41 android:multiprocess="true" 42 android:readPermission="com.android.browser.permission.READ_HISTORY_BOOKMARKS" 43 android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS"> 44 <path-permission android:path="/bookmarks/search_suggest_query" 45 android:readPermission="android.permission.GLOBAL_SEARCH" /> 46 </provider> 47 <activity android:name="BrowserActivity" 48 android:label="@string/application_name" 49 android:launchMode="singleTask" 50 android:alwaysRetainTaskState="true" 51 android:configChanges="orientation|keyboardHidden" 52 android:theme="@style/BrowserTheme" > 53 <!-- For these schemes were not particular MIME type has been 54 supplied, we are a good candidate. --> 55 <intent-filter> 56 <action android:name="android.intent.action.VIEW" /> 57 <category android:name="android.intent.category.DEFAULT" /> 58 <category android:name="android.intent.category.BROWSABLE" /> 59 <data android:scheme="http" /> 60 <data android:scheme="https" /> 61 <data android:scheme="about" /> 62 </intent-filter> 63 <!-- For these schemes where any of these particular MIME types 64 have been supplied, we are a good candidate. --> 65 <intent-filter> 66 <action android:name="android.intent.action.VIEW" /> 67 <category android:name="android.intent.category.BROWSABLE" /> 68 <category android:name="android.intent.category.DEFAULT" /> 69 <data android:scheme="http" /> 70 <data android:scheme="https" /> 71 <data android:scheme="inline" /> 72 <data android:mimeType="text/html"/> 73 <data android:mimeType="text/plain"/> 74 <data android:mimeType="application/xhtml+xml"/> 75 <data android:mimeType="application/vnd.wap.xhtml+xml"/> 76 </intent-filter> 77 <!-- We are also the main entry point of the browser. --> 78 <intent-filter> 79 <action android:name="android.intent.action.MAIN" /> 80 <category android:name="android.intent.category.DEFAULT" /> 81 <category android:name="android.intent.category.LAUNCHER" /> 82 <category android:name="android.intent.category.BROWSABLE" /> 83 </intent-filter> 84 <!-- The maps app is a much better experience, so it's not 85 worth having this at all... especially for a demo! 86 <intent-filter android:label="Map In Browser"> 87 <action android:name="android.intent.action.VIEW" /> 88 <category android:name="android.intent.category.DEFAULT" /> 89 <data android:mimeType="vnd.android.cursor.item/postal-address" /> 90 </intent-filter> 91 --> 92 <intent-filter> 93 <action android:name="android.intent.action.WEB_SEARCH" /> 94 <category android:name="android.intent.category.DEFAULT" /> 95 <category android:name="android.intent.category.BROWSABLE" /> 96 <data android:scheme="" /> 97 <data android:scheme="http" /> 98 <data android:scheme="https" /> 99 </intent-filter> 100 <intent-filter> 101 <action android:name="android.intent.action.MEDIA_SEARCH" /> 102 <category android:name="android.intent.category.DEFAULT" /> 103 </intent-filter> 104 <intent-filter> 105 <action android:name="android.intent.action.SEARCH" /> 106 <category android:name="android.intent.category.DEFAULT" /> 107 </intent-filter> 108 <meta-data android:name="android.app.searchable" 109 android:resource="@xml/searchable" /> 110 <intent-filter> 111 <action android:name="android.net.http.NETWORK_STATE" /> 112 <action android:name="android.intent.action.PROXY_CHANGE" /> 113 </intent-filter> 114 </activity> 115 116 <activity android:name="CombinedBookmarkHistoryActivity" android:label="" 117 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"> 118 </activity> 119 120 <activity android:name="BrowserBookmarksPage" android:label="@string/bookmarks" 121 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"> 122 </activity> 123 124 <activity android:name="MostVisitedActivity" android:label="" 125 android:launchMode="singleTop" android:configChanges="orientation|keyboardHidden"/> 126 127 <activity-alias android:name="ShortcutBookmarksPage" 128 android:targetActivity="BrowserBookmarksPage" 129 android:label="@string/shortcut_bookmark" 130 android:icon="@drawable/ic_launcher_shortcut_browser_bookmark"> 131 132 <intent-filter> 133 <action android:name="android.intent.action.CREATE_SHORTCUT" /> 134 <category android:name="android.intent.category.DEFAULT" /> 135 </intent-filter> 136 137 </activity-alias> 138 139 <activity android:name="BrowserDownloadPage" android:label="" 140 android:configChanges="orientation|keyboardHidden"> 141 </activity> 142 143 <activity android:name="BrowserPreferencesPage" android:label="@string/menu_preferences" 144 android:configChanges="orientation|keyboardHidden"> 145 </activity> 146 147 <activity android:name="BrowserHistoryPage" android:label="" 148 android:configChanges="orientation|keyboardHidden"> 149 </activity> 150 151 <activity android:name="BrowserPluginList" android:label="" 152 android:configChanges="orientation|keyboardHidden"> 153 </activity> 154 155 <activity android:name="GearsDialog" android:process=":dialog" 156 android:configChanges="orientation|keyboardHidden" 157 android:theme="@android:style/Theme.Dialog"> 158 </activity> 159 160 <activity android:name="GearsNativeDialog" 161 android:configChanges="orientation|keyboardHidden" 162 android:theme="@android:style/Theme.Dialog"> 163 </activity> 164 165 <activity android:name="BookmarkSearch" 166 android:label="@string/bookmarks_search" 167 android:stateNotNeeded="true" 168 android:theme="@android:style/Theme.NoDisplay" 169 android:excludeFromRecents="true"> 170 <intent-filter> 171 <action android:name="android.intent.action.SEARCH" /> 172 <category android:name="android.intent.category.DEFAULT" /> 173 </intent-filter> 174 <meta-data android:name="android.app.searchable" 175 android:resource="@xml/bookmarks_searchable" /> 176 </activity> 177 178 <service android:name="GearsDialogService" 179 android:process=":dialog" 180 android:exported="false"> 181 <intent-filter> 182 <action android:name="com.android.browser.IGearsDialogService" /> 183 </intent-filter> 184 </service> 185 186 <activity android:name="AddBookmarkPage" android:label="Save bookmark" android:theme="@android:style/Theme.Dialog" 187 android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="stateHidden"> 188 <intent-filter> 189 <action android:name="android.intent.action.INSERT" /> 190 <category android:name="android.intent.category.DEFAULT" /> 191 <data android:mimeType="vnd.android.cursor.dir/bookmark"/> 192 </intent-filter> 193 </activity> 194 195 <!-- Makes .BrowserActivity the search target for any activity in Browser --> 196 <meta-data android:name="android.app.default_searchable" android:value=".BrowserActivity" /> 197 198 199 </application> 200 201</manifest> 202 203