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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:54:08+00:00 2026-06-04T02:54:08+00:00

I am developing an application which has about 8000 names of the cities of

  • 0

I am developing an application which has about 8000 names of the cities of India. And when the user types in i use auto complete to help the user to do the job. But some city names have spelling which is hard to guess for people from other states. So we need a approximate string matching for auto complete rather than exact matching which comes by default.

For example there are names like

  • Thirumayilai
  • Thirunettur
  • Thiruthuraiyur
  • Thiruvarur

And also

  • Tirunelveli
  • Tirumangalam

If a user search for the city ‘Tirunelveli’ But types in text box as ‘Thirunel’ the autocompletetextview doens’t show the name and it does a exact string match.

What should i do to get approximate matching strings in the auto complete drop down list..

  • 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-04T02:54:09+00:00Added an answer on June 4, 2026 at 2:54 am

    After alot of search and experiments i found the solution myself..

    To do custom string matching we need a custom array adapter which we need to extend ArrayAdapter class and write our own string matching algorithm.

    We need to overide getFilter method of ArrayAdapter class for this functionality and add getItem and getCount methods to our custom adapter class.

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

Sidebar

Related Questions

I am developing a Silverlight application which has a list <ListBox x:Name=_list_collection SelectionChanged=SelectionChanged ScrollViewer.VerticalScrollBarVisibility=Auto
In the application I'm developing , we use the DevExpress XtraGrid control, which has
I am developing an application which has around 8 Activities, and a class which
I am developing a simple application which has to send an SMS message from
I'm currently developing a CakePHP application which currently has form authentication. I would also
I am developing the android application in which The application has a stored password
Im Developing a web application which is very critical. So authentication has to be
I am developing an asp.net mvc application, which has these enity classes: public class
I am developing an application suite that consists of several applications which user can
I am about 70% of the way through developing a web application which contains

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.