Learn android HTTP preparation knowledge together (16), android preparation

Source: Internet
Author: User

Learn android HTTP preparation knowledge together (16), android preparation

In the Android system, the following three communication interfaces are provided:


1. standard Java interface: java.net.


2. Apache interface: org. apache. http.


3. Android Network Interface: android.net. http.


To access the network, you need to set the app to obtain the permission for android. permission. INTERNET in the Android system.

The following are the packages related to network connections:


1. java.net

This package provides networking-related classes, including stream and datagram sockets, Internet protocols, and common HTTP processing.


2. java. io

Each type in the package is used through sockets and links provided by other Java packages. They can be used to interact with local files.


3. java. nio

Various types of data buffering are included to facilitate network communication between two endpoints of Java speech.


4. org. apache .*

Various packages that provide fine-grained control and functions for HTTP Communication.


5. android.net

Includes a variety of additional network access sockets, including the URL class, beyond the core java.net. * class.


6. android.net. http

Contains various types of SSL certificates that can be operated.


7. android.net. wifi

Contains various types of WI-FI that can manage all aspects of the Android platform.




Reprinted please indicate the source: http://blog.csdn.net/hai_qing_xu_kong/article/details/42823899 sentiment control _



Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.