简体   繁体   English

使用Android中的代码从浏览器获取URL

[英]Get URL from the browser using code in android

I want to send data through URL.I've tried the below code: 我想通过URL发送数据,我尝试了以下代码:

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://xxxxx.xxxxx.com/property/p.wp?p=n&refid=13&cat="+cat));    
startActivity(browserIntent);

when the data had been inserted into database, the browser will return something like this: 将数据插入数据库后,浏览器将返回以下内容:

http://xxxxx.xxxxx.com/property/p.wp?p=OK

to send the data through url already success but how do I get the return URL from the browser? 通过url发送数据已经成功,但是如何从浏览器获取返回URL? plus can we send picture through URL? 再加上我们可以通过URL发送图片吗?

look here , for your need for posting data on url. 看看这里 ,您是否需要在url上发布数据。 Also for image you should go through this . 同样对于图像,您应该经历一下

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

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