Android Network HTML viewer and androidhtml Viewer
This document provides an Android-based network HTML viewer.
Create a project. The project layout file is as follows:
Create a tool class StreamTools. java:
Package com.wuyudong.html v
Html code viewer, code ViewerHtml code Viewer
Effect:
Analysis:
1. permissions required to connect to the network
2. Write the default protocol and default ports http and 80
3. Put the network access code in AsyncTask.
4. Two methods for obtaining content types
String contentType = conn. getHeaderField ("Content-Type ");
Conn. getContentType
5. Split Function
1. When you create a Web site using ArcIMS Designer, the HTML viewer,arcims for this site is automatically generated designer the site is generated in POSR installation defined Website DirectoryThe question is whether the JSP application server and the ArcIMS server can be placed on two servers respectively.
2. The reason for choosing HTML
Re:
Published on pm ip Address: 218.106.166 .*
Hello, Brother Huang !!I am a beginner in ArcIMS. Thank you for your article. I am currently studying the operation mechanism of ArcIMS HTML viewer. But when I load the map for the first time and follow the code step by step, I think the first htmlsendtoserver (urlstring, xmlrequest, thetype) will be disconnected, thepostform. submit (), and the resulting act
HTML Code ViewerEffect:Analysis:1. Need permission to connect network2, to the default protocol and default port HTTP and 80 write on3, put the network access code in the Asynctask inside4. Two methods of getting content typeString Contenttype=conn.getheaderfield ("Content-type");Conn.getcontenttype5. Split functionString encoding=contenttype.split ("=") [0];Divide by equal sign, take the NO. 0 paragraphCode:1 PackageFry;2 3 ImportJava.io.InputStream
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.