“Failed to find provider info ” when Adding Recent Query Su

Put your problem here if it does not fit any of the other categories.

“Failed to find provider info ” when Adding Recent Query Su

Postby tagit » Sun Jan 16, 2011 5:42 pm

Hi, I am trying to implement recent Query Suggestions into my app, but got stuck in a “Failed to find provider info ” error
please give some help

code as below:

----------------------------------------------------------------------------------------------------------------
//searchable.xml

<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:searchSuggestAuthority="testing.advancedsearch.mysuggestionprovider"
android:searchSuggestSelection=" ?"
>
</searchable>

----------------------------------------------------------------------------------------------------------------
// content provider class

package testing.advancedsearch;

import android.content.SearchRecentSuggestionsProvider;

public class MySuggestionProvider extends SearchRecentSuggestionsProvider {
public final static String AUTHORITY = "testing.advancedsearch.mysuggestionprovider";
public final static int MODE = DATABASE_MODE_QUERIES;

public MySuggestionProvider() {
setupSuggestions(AUTHORITY, MODE);
}
}

----------------------------------------------------------------------------------------------------------------
// manifest.xml

<provider android:name=".MySuggestionProvider"
android:authorities="testing.advancedsearch.mysuggestionprovider" />

----------------------------------------------------------------------------------------------------------------
tagit
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Jan 16, 2011 5:32 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 18 guests