Trevor Johns | 807dc15 | 2009-12-07 17:04:53 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2009 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | package="com.example.android.wiktionary" |
| 19 | android:versionCode="1" |
| 20 | android:versionName="1.0"> |
| 21 | <application android:icon="@drawable/app_icon" android:label="@string/app_name" |
| 22 | android:description="@string/app_descrip"> |
| 23 | |
| 24 | <!-- Browser-like Activity to navigate dictionary definitions --> |
| 25 | <activity |
| 26 | android:name=".LookupActivity" |
| 27 | android:theme="@style/LookupTheme" |
| 28 | android:launchMode="singleTop" |
| 29 | android:configChanges="orientation|keyboardHidden"> |
| 30 | |
| 31 | <intent-filter> |
| 32 | <action android:name="android.intent.action.MAIN" /> |
| 33 | <category android:name="android.intent.category.LAUNCHER" /> |
| 34 | </intent-filter> |
| 35 | |
| 36 | <intent-filter> |
| 37 | <action android:name="android.intent.action.VIEW" /> |
| 38 | <category android:name="android.intent.category.DEFAULT" /> |
| 39 | <category android:name="android.intent.category.BROWSABLE" /> |
| 40 | <data android:scheme="wiktionary" android:host="lookup" /> |
| 41 | </intent-filter> |
| 42 | |
| 43 | <intent-filter> |
| 44 | <action android:name="android.intent.action.SEARCH" /> |
| 45 | <category android:name="android.intent.category.DEFAULT" /> |
| 46 | </intent-filter> |
| 47 | |
| 48 | <meta-data android:name="android.app.searchable" android:resource="@xml/searchable" /> |
| 49 | </activity> |
| 50 | |
| 51 | <!-- Broadcast Receiver that will process AppWidget updates --> |
| 52 | <receiver android:name=".WordWidget" android:label="@string/widget_name"> |
| 53 | <intent-filter> |
| 54 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 55 | </intent-filter> |
| 56 | <meta-data android:name="android.appwidget.provider" |
| 57 | android:resource="@xml/widget_word" /> |
| 58 | </receiver> |
| 59 | |
| 60 | <!-- Service to perform web API queries --> |
| 61 | <service android:name=".WordWidget$UpdateService" /> |
| 62 | |
| 63 | </application> |
| 64 | |
| 65 | <meta-data android:name="android.app.default_searchable" android:value=".LookupActivity" /> |
| 66 | |
| 67 | <uses-permission android:name="android.permission.INTERNET" /> |
| 68 | <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" /> |
| 69 | |
| 70 | </manifest> |