通过一个意图打开浏览器,贝宝发布数据 [英] Opening the browser through an Intent and Posting data for PayPal

查看:78
本文介绍了通过一个意图打开浏览器,贝宝发布数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要preSS一个Android按钮,并自动将用户引导到PayPal网站沿还贴出所有的相关数据。这可能吗?

I want to press an Android button and automatically direct the user to the PayPal site with all the relevant data POSTED along also. Is this possible?

推荐答案

如果贝宝提供了一个网址,让您可以通过一个GET请求(即提供所需的数据,连接codeD表单变量作为URL本身的一部分),然后是 - 只是转换了URL到乌里通过 Uri.parse(),然后调用 startActivity()上的 ACTION_VIEW 意图乌里

If PayPal offers a URL where you can supply the data you want via a GET request (i.e., encoded form variables as part of the URL itself), then yes -- just convert the URL into a Uri via Uri.parse(), then call startActivity() on an ACTION_VIEW Intent on that Uri.

如果贝宝不提供与GET参数的URL来完成你想要什么,然后不,这是不可能的。

If PayPal does not offer a URL with GET parameters to accomplish what you want, then no, it is not possible.

这篇关于通过一个意图打开浏览器,贝宝发布数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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