blob: 7ef031d0e8d74b18836ae652bf6845035cc1ad76 [file] [log] [blame]
Mike LeBeau83e2eae2009-08-27 19:13:43 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
Scott Mainbeca3af2010-03-25 17:37:25 -07004** Copyright 2010, The Android Open Source Project
Mike LeBeau83e2eae2009-08-27 19:13:43 -07005**
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 Main1b2c8082010-05-07 15:10:14 -070020 package="com.example.android.searchabledict"
21 android:versionCode="2"
22 android:versionName="2.0">
Mike LeBeau83e2eae2009-08-27 19:13:43 -070023
24 <uses-sdk android:minSdkVersion="4" />
25
26 <application android:label="@string/app_name"
Scott Mainbeca3af2010-03-25 17:37:25 -070027 android:icon="@drawable/ic_dictionary">
Mike LeBeau83e2eae2009-08-27 19:13:43 -070028
Scott Mainbeca3af2010-03-25 17:37:25 -070029 <!-- The default activity of the app; displays search results. -->
Mike LeBeau83e2eae2009-08-27 19:13:43 -070030 <activity android:name=".SearchableDictionary"
Scott Mainbeca3af2010-03-25 17:37:25 -070031 android:theme="@android:style/Theme.NoTitleBar">
Mike LeBeau83e2eae2009-08-27 19:13:43 -070032
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 Mainbeca3af2010-03-25 17:37:25 -070041 <!-- No category needed, because the Intent will specify this class component-->
Mike LeBeau83e2eae2009-08-27 19:13:43 -070042 </intent-filter>
43
44 <!-- Points to searchable meta data. -->
45 <meta-data android:name="android.app.searchable"
Scott Mainbeca3af2010-03-25 17:37:25 -070046 android:resource="@xml/searchable" />
47
Mike LeBeau83e2eae2009-08-27 19:13:43 -070048 </activity>
49
50 <!-- Displays the definition of a word. -->
51 <activity android:name=".WordActivity"
Scott Mainbeca3af2010-03-25 17:37:25 -070052 android:theme="@android:style/Theme.NoTitleBar" />
Mike LeBeau83e2eae2009-08-27 19:13:43 -070053
54 <!-- Provides search suggestions for words and their definitions. -->
Scott Mainbeca3af2010-03-25 17:37:25 -070055 <provider android:name=".DictionaryProvider"
56 android:authorities="com.example.android.searchabledict.DictionaryProvider" />
57
58 <!-- Points to searchable activity so the whole app can invoke search. -->
59 <meta-data android:name="android.app.default_searchable"
60 android:value=".SearchableDictionary" />
Mike LeBeau83e2eae2009-08-27 19:13:43 -070061
62 </application>
63</manifest>