Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 4 | ** Copyright 2010, The Android Open Source Project |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 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 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
Scott Main | 1b2c808 | 2010-05-07 15:10:14 -0700 | [diff] [blame] | 20 | package="com.example.android.searchabledict" |
| 21 | android:versionCode="2" |
| 22 | android:versionName="2.0"> |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 23 | |
Robert Ly | 7d5b68c | 2012-02-13 09:16:39 -0800 | [diff] [blame] | 24 | <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15" /> |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 25 | |
| 26 | <application android:label="@string/app_name" |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 27 | android:icon="@drawable/ic_dictionary"> |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 28 | |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 29 | <!-- The default activity of the app; displays search results. --> |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 30 | <activity android:name=".SearchableDictionary" |
Scott Main | 3531994 | 2011-02-06 15:21:49 -0800 | [diff] [blame] | 31 | android:launchMode="singleTop"> |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 32 | |
| 33 | <intent-filter> |
| 34 | <action android:name="android.intent.action.MAIN" /> |
| 35 | <category android:name="android.intent.category.LAUNCHER" /> |
| 36 | </intent-filter> |
| 37 | |
| 38 | <!-- Receives the search request. --> |
| 39 | <intent-filter> |
| 40 | <action android:name="android.intent.action.SEARCH" /> |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 41 | <!-- No category needed, because the Intent will specify this class component--> |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 42 | </intent-filter> |
| 43 | |
| 44 | <!-- Points to searchable meta data. --> |
| 45 | <meta-data android:name="android.app.searchable" |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 46 | android:resource="@xml/searchable" /> |
| 47 | |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 48 | </activity> |
| 49 | |
| 50 | <!-- Displays the definition of a word. --> |
Scott Main | 3531994 | 2011-02-06 15:21:49 -0800 | [diff] [blame] | 51 | <activity android:name=".WordActivity" /> |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 52 | |
| 53 | <!-- Provides search suggestions for words and their definitions. --> |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 54 | <provider android:name=".DictionaryProvider" |
| 55 | android:authorities="com.example.android.searchabledict.DictionaryProvider" /> |
| 56 | |
| 57 | <!-- Points to searchable activity so the whole app can invoke search. --> |
| 58 | <meta-data android:name="android.app.default_searchable" |
| 59 | android:value=".SearchableDictionary" /> |
Mike LeBeau | 83e2eae | 2009-08-27 19:13:43 -0700 | [diff] [blame] | 60 | |
| 61 | </application> |
| 62 | </manifest> |