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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:10:21+00:00 2026-06-10T04:10:21+00:00

I need a component that allows the user to enter a value and checks

  • 0

I need a component that allows the user to enter a value and checks if it exists by connecting to a certain site on the Internet, and also shows suggestions while the user is typing. I would like to use the SearchView component for that, but found out it has some limitations:

  1. The developer has to create a separate activity that handles the search. I don’t want to use a different activity, I just want to connect to the site and check if what the user typed exists.

  2. In order to use the suggestions mechanism, the developer has to build a content provider. Again, I don’t want to connect to any DB, I just need to send a search query to the site using standard HTTP messages, and for that I don’t need a content provider.

So my question is: Is there a way to use the SearchView component with the customization I need, or do I have to find ugly workarounds that abide by the requirements of the component, but also do what I need?

Thanks.

  • 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-06-10T04:10:22+00:00Added an answer on June 10, 2026 at 4:10 am

    You shouldn’t run HTTP request on your UI thread as you can’t guarantee they’ll finish in a timely manner so they might lock up. You’ll need to run that in a runnable or ASyncTask at the very lest.

    If you want a quick dirty hack way of doing it, you could create a ListFragment to display your custom suggestions. Then create an OnQueryTextListener (or have your Activity implement it) set it on the SearchView. Then in the Listener’s method onQueryTextChange(String text) generate the suggestions (if getting from the webservice have this method kick off your ASyncTask) and then update the ListFragment Adapter with the data

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

Sidebar

Related Questions

I need a component that will allow me to enter a signature on a
I need to define a Wix file component that may not exist in certain
I need to do an application that allows the final user to create his
I am using primefaces with JSF. I need a input component that allows users
I need to write a simple Java GUI application that, basically, allows the user
I need a component/class that throttles execution of some method to maximum M calls
I need to write a sophisticated website that does AJax, drag and drop, component
I am writing a Delphi application that allows a user to connect to an
I need a Swing component that will let me display a tree-structured list of
I need to create an application that allows users to design forms for various

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.