1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** Copyright 2010, 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<manifest xmlns:android="http://schemas.android.com/apk/res/android" 20 package="com.example.android.searchabledict" 21 android:versionCode="2" 22 android:versionName="2.0"> 23 24 <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15" /> 25 26 <application android:label="@string/app_name" 27 android:icon="@drawable/ic_dictionary"> 28 29 <!-- The default activity of the app; displays search results. --> 30 <activity android:name=".SearchableDictionary" 31 android:launchMode="singleTop"> 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" /> 41 <!-- No category needed, because the Intent will specify this class component--> 42 </intent-filter> 43 44 <!-- Points to searchable meta data. --> 45 <meta-data android:name="android.app.searchable" 46 android:resource="@xml/searchable" /> 47 48 </activity> 49 50 <!-- Displays the definition of a word. --> 51 <activity android:name=".WordActivity" /> 52 53 <!-- Provides search suggestions for words and their definitions. --> 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" /> 60 61 </application> 62</manifest> 63