3 Star 7 Fork 4

华为移动服务 / hms-network-demo

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

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.

Repository Comments ( 0 )

Sign in to post a comment

About

Network Kit示例代码,通过Demo可以体验到如何集成Network Kit,并通过两种不同的方式(HttpClient和RestClient方式 )完成同步和异步网络请求;以及如何通过集成Network Kit实现文件的上传/下载功能。 expand collapse
Java
Cancel

Releases

No release

hms-network-demo

Contributors

All

Activities

Load More
can not load any more
Java
1
https://toscode.gitee.com/hms-core/hms-network-demo.git
git@toscode.gitee.com:hms-core/hms-network-demo.git
hms-core
hms-network-demo
hms-network-demo
main

Search