简体   繁体   English

从我的应用发布,获取响应,并在Android默认浏览器中显示?

[英]POST from my app, get the respone, and show it in the Android default browser?

I need to implement following function in my app. 我需要在我的应用中实现以下功能。

  1. POST to certain URL from my app. 从我的应用发布到某些URL。
  2. show the respone in android's default browser 在Android的默认浏览器中显示响应

I can't use webview class due to client's demand. 由于客户的需求,我无法使用webview类。

What I want to make is Login app to existing server-side application. 我想做的是将登录应用程序添加到现有服务器端应用程序。 the app has ID & PW, and want to log in inside the app, and show response in default browser. 该应用具有ID和PW,并且想要登录该应用并在默认浏览器中显示响应。

Is is possible? 有可能吗?

Your first task seems easy. 您的第一个任务似乎很简单。 Try using HttpPost to post to the required URL. 尝试使用HttpPost发布到所需的URL。 Check this tutorial out. 查看本教程

As far as the second task is concerned I really don't how to do without a WebView . 至于第二个任务,我真的没有WebView怎么做。

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

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