6 Star 9 Fork 4

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

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
o00381843 提交于 2022-07-22 16:10 . update version and readme

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.

Java
1
https://gitee.com/hms-core/hms-network-demo.git
git@gitee.com:hms-core/hms-network-demo.git
hms-core
hms-network-demo
hms-network-demo
main

搜索帮助