替代德precated谷歌的网络搜索API为Android [英] Replacement for deprecated Google web search API for Android

查看:210
本文介绍了替代德precated谷歌的网络搜索API为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待从我的Andr​​oid应用程序谷歌搜索和返回结果。一切我发现点指向谷歌网页搜索API,它的页面现在说的是德precated ,并正在由的自定义搜索API

I'm looking to search Google from my Android app and return results. Everything I've found points towards the Google Web Search API which the page now says is deprecated and is being replaced by a Custom Search API.

新的自定义搜索API只允许您通过您创建一个自定义搜索引擎的网站搜索。我想搜索所有互联网作为任何人会通过谷歌。

The new custom search API only allows you to search through websites you've created a custom search engine for. I want to search all of the internet as anyone would through Google.

我怎样才能做到这一点?

How can I do this?

推荐答案

Android有一个的很多的搜索功能 - 所有内置

Android has a lot of search capabilities - all built-in.

看看这里:

http://developer.android.com/guide/topics/search/ index.html的

谷歌code和Android SDK的是两个不同的东西。网络搜索API是谷歌code和,你说,它确实是有利于谷歌自定义搜索的pcated德$ P $:

Google Code and the Android SDK are two different things. The Web Search API is Google Code and, and you noted, it has indeed been deprecated in favor of Google Custom Search:

HTTP://$c$c.google.com/的API / customsearch /自V1 / overview.html

http://www.google.com/cse/

最后,这里是一个很好的博客文章,告诉您如何调用一个兵/雅虎!从Android的网络搜索:

Finally, here's a good blog entry that shows you how to invoke a Bing/Yahoo! web search from Android:

http://www.$c$cxperiments.com/java/2011/01/create-your-own-web-search-application/

坦率地说,必应API看起来很多比谷歌自定义搜索更好的赫克。与事实Bing的API不会限制你100个查询开始/像自定义搜索一天所做的:)

Frankly, the Bing API looks a heck of a lot better than Google Custom Search. Starting with the fact that Bing's API doesn't limit you to 100 queries/day like Custom Search does :)

希望帮助!

这篇关于替代德precated谷歌的网络搜索API为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆