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?
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:
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.
Related
I know firebase doesn't support full text search by default. It suggests to use some 3rd party services.
I choose to go with Algolia but the problem is there's no documentation on how to integrate Algolia in android studio. There's a lot of tutorial for setting up Algolia with firebase for web apps.
Is there any better way or link to any tutorial to achieve full text search with Firestore in Android Studio.
I need it for an e-com android app similar to amazon.
The Firebase extension will help you get your data from Firebase into an Algolia index. That's the same whether you're building a mobile or web application.
For building the mobile frontend Algolia recommends using the InstantSearch library. The steps for setting up InstantSearch in Android Studio are found here
So, I have developed an android application based on a Youtube tutorial and now I was planning on implementing a recommendation system. It's a food delivery application that I developed and I wanted to know how can I integrate a recommendation system into the app so that people can get suggestion on food items. I used Firebase to store and retrieve data but I am not sure how I can use recommendation system so that it can retrieve data from firebase and suggest customers on what to choose? I am beginner in developing and writing algorithms. Any help would really be appreciated!
Thanks
Hy Cries,
I had implemented recommendation system in my final year project.
The thing is first of all you should go through some of the patent papers which are published on your kind of recommendation system that you want to implement(Eg.YouTube).
As in you app you should do recommendation for new user as "Popularity recommendation" (type of rec.)and for old user "User-User recommendation".
User - User is the simplest one but for other type for recommendation you have to integrate python code which will run on jdoodle server and return result in form of string and use it as your output.
Feel free to ask anything related to this!
I hope you got something from this.
I am researching ways to implement form filling via voice command given by user inside my application.I have searched two options but no one is seems useful and I am bit confused here.
First I tried with android voice to speech library integration.It gives me text but isn't smart enough to converse with as google assistance do.
Then second I tried to integrate google assistance with api.a. It provides the user conversation but it is like adding command to google assistance .It doesn't provide me voice to text data so that I can fill form and do further operation.
Please suggest me ways to implement.
You can use the SDK provided by Slang Labs which allows you to add a custom voice experience inside your app. You can create a "buddy" in their console and configure the kind-of intents/utterances you want to handle. Then integrate its SDK into your app, which takes care of all the voice-related functionality and you can register callbacks for the intents you have configured in the console to handle the app-specific actions.
(disclaimer: I am a co-founder of Slang Labs :-))
You wouldn't use Actions on Google through Dialogflow for your implementation but rather the Google Assistant SDK which is meant for devices.
However, in your case it may make sense to use Dialogflow's Android client. You would not need to pull all of the Google Assistant's capabilities and the voice interaction would be limited to your own application.
I made an app where anyone can sell a product: you set its details and then I save it in Firebase.
On the client side (Android app) I want to be able to search for products using plain text.
I think the best way is by using Algolia but I really have no idea how to set-it up. Your help will be appreciated!
There are actually two topics in your question: how can one link Algolia to a Firebase database and how can one build an Android app with Algolia. I'll cover both in my answer.
How to link Algolia to Firebase
You will need to use a scripting language to import your existing data into Algolia and to sync the changes when your data is updated. Algolia has a guide to help you do so using Node.js.
You don't need to be experienced with Node.js to do it! Have a look at this question where an Android developer like you with no prior experience of Node.js just followed the guide:
In the first gathering of data, I just copied the integration code, did the necessary changes and ran it on Windows terminal: the data is now imported from Firebase to Algolia.
You simply need to:
Copy the code samples from Algolia's Firebase guide
Replace the credentials with yours
Run the scripts from your computer (if you never ran js scripts locally, search for a Node.js beginner's guide like this or this)
Once your data is imported in Algolia, you can move on to step 2:
How to use Algolia in your Android app
For building your search interface with Algolia, the recommended tool is InstantSearch Android. It's a toolbox that provides you plug-and-play components to build your search interface quickly: InstantSearch will handle all the network-related issues, the data-binding, and many other things so you can focus on what's specific to your app.
You can have a look at InstantSearch Android's demo apps which will show you examples what you could build using this tool, like this Media demo:
Algolia also provides an Android API Client for building apps. It lets you interact at a lower level with Algolia: you send the requests, get the results as JSONObject and decide what you want to do with it.
Most projects should use InstantSearch Android as it is built to make your development easier and faster (and it actually uses the Android API Client under the hood!)
I have a website which is already created in Drupal. In one section it consists of a form with different fields which on submit returns you the result from the database.
I want to create an android application to access this search functionality by the form created in Android and also display the results there. Is there a way by which I can write some sort of web service which doesn't change any code for the website and give me desired results.
Can somebody guide me what can I do here? I don't have much knowledge of Drupal but I am familiar with PHP.
You will want to look at using the Services module. Sumit Kataria gave a good presentation on how one would go about developing android/iphone apps using Drupal as a base at DrupalCon Chicago 2011 (there is a video of the session). He covers more then what you are looking for, but does provides a good introduction on how to go about using services.