How to get search suggestions when I type some text in my edittext. I am not talking about the interface, but how do i get the actual suggestions like when you type something in the google search bar.
Are there any APIs available?
Thx!
Rahul.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
The Google Suggest API seems to be what you’re looking for:
http://blogoscoped.com/archive/2006-08-17-n22.html
You can try it on that page, and it will show you the results of your query as XML, when you click submit.
Then, on Android you would use an XML parser, and there’s a good example of that here:
http://www.ibm.com/developerworks/opensource/library/x-android/
Here’s the official Android documentation on parsing XML: http://developer.android.com/training/basics/network-ops/xml.html