Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
是的。 Android 包含一个 http 客户端和 Xml + Json 库。
Yes. Android includes an http client and Xml + Json libraries.
您还可以使用 YQL
YQL 控制台 对于测试很有用。上面的示例使用 google.igoogle.stock 表
You could also do it with straight HTTP using YQL
YQL console is useful for testing. The example above uses the google.igoogle.stock table
仅当您使用团队创建的徽章时才允许重新分发雅虎财经数据:http://finance.yahoo。 com/徽章。将 YQL 用于非个人用途将违反服务条款。
Google 财经 API 和工具 (条款)
Redistribution of Yahoo Finance data is only allowed if you are using the badges the team has created: http://finance.yahoo.com/badges. Using YQL for non-personal use would be a breach of terms of service.
Google Finance APIs and Tools (Terms)
我认为这篇博文可以帮助您:
http://benjisimon。 blogspot.com/2009/01/truly-simple-stock-api.html
它使用雅虎财经检索股票报价。
这使用相同的服务,但它会下载到电子表格
http://www.gummy- stuff.org/Yahoo-data.htm
但是它可能很有用,因为有很多解释。
I think this blog post could help you:
http://benjisimon.blogspot.com/2009/01/truly-simple-stock-api.html
It uses Yahoo Finance to retrieve stock quotes.
This uses the same service, but does it download into a spreadsheet
http://www.gummy-stuff.org/Yahoo-data.htm
However it could be useful since there is a lot of explanaiton.
查看适用于 Android 的 BuzzBox SDK,特别是此处的示例:
http://hub。 uzzbox.com/android-sdk/quickstart
该示例使用 Yahoo 天气 api 构建通知天气应用程序。如果您只是按照之前的建议调整它以使用 YQL 获取股票数据 YQL
这是一个非常相似的 JSON 解析问题。
Have a look to the BuzzBox SDK for android and in particular to the example here:
http://hub.buzzbox.com/android-sdk/quickstart
The example is using the Yahoo weather api to build a notification weather app. If you simply adapt it to get stock data using YQL as suggesed before YQL
It's a very similar JSON parsing problem.