Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a Google like instant search in an Android app

I am working on an Android app in which i want to add an instant search feature.

Basically I want to show places name when the user writes its initials in a TextBox.
How can I achieve this?

like image 220
user2094409 Avatar asked Nov 03 '22 02:11

user2094409


1 Answers

Building the interface

You can use InstantSearch Android, which is an open-source library to help you easily build instant search experiences on Android using Algolia.

It is available on GitHub and lets you build quickly an instant search UI. See for example the InstantSearch Media application:

Example media application

You can start with the Getting Started Guide which will take you through the main steps to use the library.

The example applications can give you an idea of what you can build with InstantSearch Android.

Using the data

If you have the places data you want to search in, you can simply index it in Algolia and it will be searchable in your app.

If you don't have the data somewhere, have a look at Algolia Places which provides a free access to a worldwide places database.

Disclaimer: I am the author of InstantSearch Android.

like image 128
PLNech Avatar answered Nov 10 '22 19:11

PLNech