- Forum posts: 1
Jan 16, 2011, 5:39:21 PM via Website
Jan 16, 2011 5:39:21 PM via Website
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" />
-------------------------------------------------------------------------------------------
— modified on Jan 19, 2011, 4:14:54 PM