mercredi 4 février 2015

set text in searchView after selecting item from searchable suggestion window


Vote count:

0




i have implemented searchable suggestion in my android application and its show the result in autocomplete text ( i have bind with a search view ).


following is my configuration


searchable.xml



<?xml version="1.0" encoding="utf-8"?>
<searchable
xmlns:android="http://ift.tt/nIICcg"
android:label="@string/app_name"
android:hint="Search Name"
android:searchSuggestAuthority="com.mdb.db"
android:searchSuggestIntentAction="android.intent.action.VIEW"
>
</searchable>


here are my matcher



MATCHER.addURI(MyApp.AUTHORITY,SearchManager.SUGGEST_URI_PATH_QUERY, DB.NAME.SEARCH_SUGGEST);
MATCHER.addURI(MyApp.AUTHORITY,SearchManager.SUGGEST_URI_PATH_QUERY+"/*", DB.NAME.SEARCH_SUGGEST);


now the issues is when i type text and see the autocomplete list and taps over any item inside the autocomplete , its opening the same activity , rather then setting the selected item in a searchview. i dont know how to resolve this issue.



asked 2 mins ago

Hunt

1,562






set text in searchView after selecting item from searchable suggestion window

Aucun commentaire:

Enregistrer un commentaire