문제

내가 가지고 있는 응용 프로그램 개의 검색 제안을 제공하는 모두를 확장 SearchRecentSuggestionsProvider, 고 내가 올바르게 설정에서는 매니페스트 파일로 다음 Intent 필터와 메타데이터:

<intent-filter>
   <action android:name="android.intent.action.SEARCH" />
</intent-filter>

<meta-data
   android:name="android.app.searchable"
   android:resource="@xml/searchable_tv" />

이 searcable 스 android:includeInGlobalSearch="true", 야하는,그래서 괜찮습니다.

그리고 나는 분명히 가지고 업체뿐만 아니라 거기:

<provider
   android:name="com.miz.contentprovider.TvShowContentProvider"
   android:authorities="com.miz.contentprovider.TvShowContentProvider"
   android:exported="true" />

이 모든 작동이 안드로이드 4.3 를 사용하여 Google 검색 응용 프로그램,하지만 난 그냥 업데이트 내 모든 장치 안드로이드 4.4 고 나는 할 수 더 이상 콘텐츠를 검색에 내 응용 프로그램이 있습니다.같은 일을 위해 간다는 다른 응용 프로그램 전에 일 OS 업데이트 즉Google 음악을 재생할 수 있습니다.

내가 찾는 스레드에는 개발자에 언급은 이뿐만 아니라,도움이 된다면: http://forum.xda-developers.com/showthread.php?p=47472102

사람이 어떤 생각을 가지고 있는 무슨 일이나 그것은 어떻게 할 수 있습니다.

업데이트:나는 것을 확인할 수 있습니다 그것만이 발생하는 장치에서 안드로이드 4.4.나는 테스트는 안드로이드 4.3 장치의 최신을 사용하여 Google 검색이 업데이트,그리고 예상대로 작동합니다.처럼 보이는 그것이 버그가 구글의 업데이트합니다.

도움이 되었습니까?

해결책

이 commit AOSP 에서는 관련이 있을 수 있습니다:https://android.googlesource.com/platform/packages/apps/QuickSearchBox/+/ecf356c15143ab0583c64682de16d94a57f7dd1c

커미 메시지가 우리에게는 이 기능을 제거되었으로 인해성능 이유는(할 수 있거나 사실이 되지 않을 수 있습이 주어진,그것을 참조하는 내부 티켓은 id 와 나는 찾지 못했 관련된 문제에 대해 이에 공식 bugtracker).

다른 팁

체크와 함께 연락처 구글,고 앱 인덱싱 대체이다.문서 표시하도록 업데이트됩니다 이 사용되지 않는 것으로,그리고 방법이 없이 기능이 작동하려면에서 킷 캣지 않고 시스템 수준 사용 권한(로 iDev 위에서 보여준).

구글 크롬 나타나는 이제로 검색할 수 있기 때문에 응용 프로그램의 마지막 업데이트(v31).

시스템 응용 프로그램:

가려고 다음과 같이

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.globalsearch" android:sharedUserId="android.uid.shared">
    <uses-permission android:name="android.permission.GLOBAL_SEARCH" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS" />
    <application android:label="@string/global_search" android:process="android.process.acore">
        <activity android:name=".GlobalSearch" android:permission="android.permission.GLOBAL_SEARCH_CONTROL" android:stateNotNeeded="true" android:theme="@android:style/Theme.NoDisplay" android:excludeFromRecents="true">
            <intent-filter>
                <action android:name="android.intent.action.SEARCH" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <!-- This must be higher than the default priority (0), which
is what GoogleSearch uses. -->
            <intent-filter android:priority="500">
                <action android:name="android.search.action.GLOBAL_SEARCH" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data android:name="android.app.searchable" android:resource="@xml/searchable" />
        </activity>
        <activity android:name=".SearchSettings" android:label="@string/search_settings">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.search.action.SEARCH_SETTINGS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <provider android:name=".SuggestionProvider" android:authorities="com.android.globalsearch.SuggestionProvider" android:permission="android.permission.GLOBAL_SEARCH_CONTROL" />
        <provider android:name=".StatsProvider" android:authorities="com.android.globalsearch.stats" android:permission="android.permission.GLOBAL_SEARCH_CONTROL" />
        <meta-data android:name="android.app.default_searchable" android:value=".GlobalSearch" />
    </application>
</manifest>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top