This is the workaround I came up with, but it's not perfect, because the search UI hides and shows again, instead of staying onscreen and just putting the query in the QSB search field.
@Override protected void onNewIntent(Intent intent) { // TODO need to handle different cases, whether user tapped suggestion or hit the 'go' button if (Intent.ACTION_SEARCH.equals(intent.getAction())) { String query = intent.getStringExtra(SearchManager.QUERY); Toast.makeText(this, "TRY TO PLACE QUERY IN QSB: " + query, Toast.LENGTH_LONG).show(); SearchManager searchManager = (SearchManager)getSystemService(Context.SEARCH_SERVICE); Bundle b = intent.getBundleExtra(SearchManager.APP_DATA); searchManager.startSearch(query, true, this.getComponentName(), b, false); } } On Feb 2, 2:30 pm, Mathias Lin <m...@mathiaslin.com> wrote: > How to make the suggestions in the QSB editable when the user clicks > on it, instead of triggering the actual search? I.e. via an edit icon > on the right, like on the Google Search app. > > See screenshot:http://i.imgur.com/M1C6a.png > > Is there a standard way to do it, or does it require to implement it > from scratch, i.e. customized suggestion list item layout in xml with > a button, custom searchbar implementation, etc.? > > I couldn't find any info on that > onhttp://developer.android.com/intl/fr/guide/topics/search/searchable-c... > and related docs. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en