Android Network

Java

Posted by PZ on December 20, 2019

HTTP Networking

Http: hypertext transfter protocol

  • Get(): read
  • Post(): write into
  • Put()
  • Delete()
  • Query – request data ? format = geojson USAG_REQUEST_URL
  • URL (public final class)
  • HttpUrlConnection class

Process:

  • Request URL
  • Request Method
  • Status Code
  • Remote Address
  • Encoding
  • Client Data

String vs StringBuilder:

  • String: can’t be changed
  • StringBuilder: can be changed

String built = builder.toString();