简体   繁体   English

在android中开发Web应用程序

[英]developing web application in android

I want to develop an android application that will access web pages.Like my browser will first load "www.mail.yahoo.com".then it automatically set yahoo id and password that i will tell from my program.then it will automatically click in sign in to sign in.Like web browser control in visual basic 6 or in c# application.In android i can browse pages using web view but not getting any way to access html content as i have been trying for a week.If any body will help it will be great pleasure. 我想开发一个可访问网页的android应用程序。就像我的浏览器会先加载“ www.mail.yahoo.com”。然后它会自动设置我将从程序中告诉您的yahoo ID和密码。就像在Visual Basic 6或C#应用程序中的Web浏览器控件一样。在android中,我可以使用Web视图浏览页面,但是由于我已经尝试了一周,所以无法获得访问html内容的任何方式。会有所帮助的。 Thanks 谢谢

You can use WebView for accessing URLs and let the users see the content. 您可以使用WebView访问URL,并让用户看到内容。

A poorman's solution to get the HTML is to open the URL with another HttpConnection in another thread and read the contents of it. 穷人获取HTML的解决方案是在另一个线程中使用另一个HttpConnection打开URL并读取其内容。 just because I haven't find any other way to access the HTML that is loaded in the WebView 只是因为我没有找到其他方法来访问WebView中加载的HTML

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

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