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 6854165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:36:00+00:00 2026-05-27T01:36:00+00:00

I have included a Search Dialog in my Activity which works fine. However adding

  • 0

I have included a Search Dialog in my Activity which works fine. However adding Search Suggestions gives me a little problem: The search suggestion entries are “empty”.

I can see my content provider gets called (query(..)) and I return a MatrixCursor with several rows. The suggestions list also shows with (clickable) entries — but are all blank. Blank as if the string I returned for SUGGEST_COLUMN_TEXT_1 and SUGGEST_COLUMN_TEXT_2 where an empty string.

The columns I use in the MatrixCursor are:

String[] columnNames = {"_ID", "SUGGEST_COLUMN_TEXT_1", "SUGGEST_COLUMN_TEXT_2", "SUGGEST_COLUMN_INTENT_EXTRA_DATA"};

I did try with just the _ID and SUGGEST_COLUMN_TEXT_1 column but same result.

EDIT: And I tried returning a simple “test” string as SUGGEST_COLUMN_TEXT_1 instead of something from my data.

I’m note quite sure what code is relevant here, so please ask for whatever may be needed to figure this out.

I have no idea for where to look for this bug, and my Google-Fu has failed me.

Thanks

(I would like to have added an ‘android-search-suggestion’ tag, but I’m newguy so it seems I cant)

  • 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-27T01:36:00+00:00Added an answer on May 27, 2026 at 1:36 am

    (Thank you, Jcwenger for teaching the new guy 🙂

    The solution, from my comment above:

    Found it. Use SearchManager.SUGGEST_COLUMN_TEXT_1 instead of “SUGGEST_COLUMN_TEXT_1”.. (Same for the rest).The String SearchManager.SUGGEST_COLUMN_TEXT_1 maps to “suggest_text_1”: http://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_TEXT_1

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

Sidebar

Related Questions

I have a modal dialog box which is containing search field. when I select
I have a simple ATL Service in which I have included the following statement.
Often i have a problem that I need to determine which assebmly to include
I am having a ghost problem. I have included Java in my install package
I have a requirement to perform an indexed search across content which must include
I have a search page which allows users to further filter thier results based
I have advanced search on my web page, now how this works is as
I have a problem migrating from Delphi 2006 to Delphi 2009. A Project which
I have a master page and have included a search text box. User is
I have been fancying the idea of creating my own search dialog to create

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.