Skip to content

This sample code is to guide the developer how to integrate the Network Kit.It incorporates Huawei's experience in far-field network communications, and utilizes scenario-based RESTful APIs as well as file upload and download APIs

HMS-Core/hms-network-demo

Repository files navigation

HUAWEI Network Kit Sample

English | 中文

Introduction

This project contains the sample code for network-url and network-filemanager of HUAWEI Network Kit. The project directory is as follows:

|-- network-url-sample URL network request sample

|-- network-filemanager-sample File upload and download request sample

Precautions

  1. It is recommended that the Android SDK version be 19 or later, and the JDK version be 1.8 or later.
  2. This version uses new features of Java 8, such as Lambda expressions and static API methods.In this version and later versions, the Java 8 compilation options must be added for the Gradle. Otherwise, UrlConnection will be used to send requests, causing limitations on many request capabilities. The code for adding Java 8 compilation options for Gradle is as follows:
   compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
   }

Technical Support

You can visit the Reddit community to learn latest information about HMS Core and communicate with other developers.

If you have any questions about the sample code, try the following:

  • Visit Stack Overflow and submit your development problem under the huawei-mobile-services tag. Huawei experts will help you solve the problem in one-to-one mode.
  • Visit the HMS Core section in the Huawei Developer Forum and communicate with other developers.

If you encounter any issues when using the sample code, submit your issues or submit a pull request.

About

This sample code is to guide the developer how to integrate the Network Kit.It incorporates Huawei's experience in far-field network communications, and utilizes scenario-based RESTful APIs as well as file upload and download APIs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages