简体   繁体   English

如何获取实时汇率数据并将其应用于Android App?

[英]How to get a live exchange rate data and apply it to an Android App?

How to get a live exchange rate data and apply it to an Android App? 如何获取实时汇率数据并将其应用于Android App? Currently creating a currency exchange as my project. 目前正在创建一个货币兑换作为我的项目。

Welcome to SO. 欢迎来到SO。 I would say the best thing for you to do is to read up on: 我想说的,对您来说最好的事情是继续阅读:

If there's a specific problem you're running into with your project, I'm sure the folks here on SO would love to hear more details about your problem in order to help. 如果您的项目遇到特定问题,我敢肯定,SO的人们很乐意听到有关您问题的更多详细信息,以提供帮助。

Best, 最好,

-aj -aj

I would imagine you have to make your application connect to some kind of webservice to retrieve the exchange rate data needed. 我想您必须使您的应用程序连接到某种Web服务来检索所需的汇率数据。

Android does not have built-in SOAP or XML-RPC client APIs. Android没有内置的SOAP或XML-RPC客户端API。 However, it does have the Apache HttpComponents library baked in. You can either layer a SOAP/XML-RPC layer atop this library, or use it “straight” for accessing REST-style Web services. 但是,它确实包含了Apache HttpComponents库。您可以在该库的顶层放置SOAP / XML-RPC层,也可以“直接”使用它来访问REST样式的Web服务。 For the purposes of this book, “RESTstyle Web services” is defined as simple HTTP requests for ordinary URLs over the full range of HTTP verbs, with formatted payloads (XML, JSON, etc.) as responses. 就本书而言,“ RESTstyle Web服务”定义为在整个HTTP动词范围内对普通URL的简单HTTP请求,并带有格式化的有效负载(XML,JSON等)作为响应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM