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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:23:19+00:00 2026-06-04T13:23:19+00:00

My app uses data from a web server. On a website you can get

  • 0

My app uses data from a web server. On a website you can get autocomplete using some ajax calls which takes milli seconds to function. but in case of android i need to get all the key words from the site, store them in an array, make n adapter and set it to the AutoCompleteTextView. the problem is i have some 10K keywords on the server, so fetching such a huge data is a problem. So is there any other way to achieve autocomplete in my case?? thank you

  • 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-04T13:23:20+00:00Added an answer on June 4, 2026 at 1:23 pm

    You are clearly going to have to prefetch the data in a non-UI thread so as not to ANR the app, and make it accessible in the form of some sort of local cache or service so as not to fetch the same data repeatedly.

    Options in order of least complex to most complex:

    1. Use an AsyncTask and store the results in a static variable of some sort.
    2. Use an AsyncTask or similar concept like in (1), but store the results in a cache, like those found in Guava: http://code.google.com/p/guava-libraries/wiki/CachesExplained
    3. Build a Service: http://developer.android.com/reference/android/app/Service.html#WhatIsAService. The architecture of the service can be layered depending on the complexity of the call. Look at the repository pattern if the domain you are retrieving from the ajax calls is complex and used for more than just this autocomplete function.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ASIHTTPRequest API to get some JSON data from a web side. I'm
I'm making an iphone app that uses NSURLConnection to download some data from the
Background: Our web app uses the jquery.constrain.js plugin to handle data entry in some
I'm implementing a web app, which uses sessions. I'm using GWT and app engine
My app needs to grab some data from the web at a specific time
I have an asp.net web app which holds its data in an sql server
If your web app uses web service API calls to an external source, some
I'm making an app that downloads data from a plist and uses that data
I have an Entity Data Model-based app that uses SQL Server CE 3.5 as
I have a asp.net web forms app that uses System.Web.Caching.Cache to cache xml data

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.