私は自分の辞書アプリケーションで自分の辞書定義の単語を書きました。しかし、エミュレーターで辞書アプリケーションを起動すると、デフォルトのAndroid辞書が機能してもアプリ辞書が機能しなくなります。私はすべてのプロバイダーの許可を変更し、マニフェストファイルはそれらすべてのものをファイルします。しかし、辞書が機能していません。
マニフェスト:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.searchbook"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_dictionary"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<!-- The default activity of the app; displays search results. -->
<activity android:name=".SearchBook"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Receives the search request. -->
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
<!-- No category needed, because the Intent will specify this class component-->
</intent-filter>
<!-- Points to searchable meta data. -->
<meta-data android:name="android.app.searchable"
android:resource="@xml/searchable" />
</activity>
<!-- Displays the definition of a word. -->
<activity android:name=".WordActivity" />
<!-- Provides search suggestions for words and their definitions. -->
<provider android:name=".DictionaryProvider"
android:authorities="com.example.searchbook.DictionaryProvider" />
<!-- Points to searchable activity so the whole app can invoke search. -->
<meta-data android:name="android.app.default_searchable"
android:value=".SearchBook" />
</application>
</manifest>