Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6162161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:36:20+00:00 2026-05-23T21:36:20+00:00

How to make the suggestions in the QSB editable when the user clicks on

  • 0

How to make the suggestions in the QSB editable when the user clicks on it? I.e. via an edit icon on the right, like on the Google Search app.

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, etc.?

I couldn’t find any info on that on https://developer.android.com/guide/topics/search/searchable-config.html etc.

qsb sample

Edit:
I’m currently trying this for testing, after the search intent is invoked, I start a new search with the query preset – it works but it’s too slow, because it closes the search UI and reopens it, which is not what I want. I’d like the search UI to stay open.

@Override
protected void onNewIntent(Intent intent) {
    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);
        searchManager.startSearch(query, true, this.getComponentName(), b, false);
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:36:21+00:00Added an answer on May 23, 2026 at 9:36 pm

    Same problem here, it’s a shame we can’t do this. However, since API 11 (Android 3.0), you can provide the SUGGEST_COLUMN_FLAGS column in your suggestion results cursor with value FLAG_QUERY_REFINEMENT. From the docs, it seems this should be the way to go.

    While the docs say it’s introduced in API 11, I was able to use it on Android 2.3 as well (they probably made it public by mistake). However, although the constants are there on Android 2.3, it doesn’t seem to work (I have not tried on 3.0).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Rails app with users, suggestions and searches. There is a many-to-many
Anyone have any suggestions on how to make randomized colors that are all greenish?
I am wondering how to make the matched part of the autocomplete suggestions bold
I make an app that have to printing image. I need to print image
How do I tell Eclipse to automatically make suggestions as I type? I'm looking
I have a tomcat/mysql website that I would like to move over to Google
Outline I'm building a form for a specific page, where users can make suggestions
Can anyone make any suggestions about how best to use EasyMock to expect a
I need to optimize this code. Any suggestions to make it go faster, please
one of my biggest peeves is how some android keyboards make text suggestions come

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.