SearchView in case of a separate Searchable activity
from the CommonsWare Community archivesAt May 10, 2018, 6:58pm, Shahood asked:
Hello,
In sample project ActionBar/SearchView, how would the following change if we declare a separate activity as Searchable Activity:
- Android Manifest
- ConfigureSearchView(Menu menu)
- res/menu/actions.xml
Thanks
At May 10, 2018, 7:13pm, mmurphy replied:
Off the top of my head, I have no idea.
I have not spent time looking at integrating with the Assistant or older Android search solutions in several years. That is why I removed the chapter that we discussed in a previous thread.
Using Stack Overflow as a gauge of popularity, few developers bother with this sort of search integration. I haven’t needed to worry about it for any consulting clients, and it’s not an area of personal interest (the way security is, for example). I wrote the chapter originally back when Android was small. As Android grows, I remove chapters that do not “meet the cut” for personal or community interest, if I cannot maintain those chapters.
I apologize for being unable to answer your search integration questions.
At May 11, 2018, 6:45am, Shahood replied:
I feel like crying…out loud
I see such search interface in many applications where apparently a separate search activity is used and it uses a different layout altogether. I suggest the idea of search as a whole should be re-included in the book as a separate (and detailed) chapter. Now the latest version of this book doesn’t contain anything about how to implement search suggestions…how is this justified? And thats just one feature of search framework thats missing. Google updated this area or not but we need to lear what it currently offers.
Please look into it and dedicate a complete chapter on search framework currently being offered by Android, also suggesting the best practices. IMHO, thats a huge missing area.
I hope u r convinced enough to spend some of your precious time on that. The worst thing about this community is that it is pretty much you and me here, so this wish of mine cant be expected to get many votes if thats what would convince you.
Thanks anyway!