腾讯云 Android SDK 示例仓库
当前仓库内提供的示例有:
- COSTransfer - 腾讯云 COS XML 极简接入 demo;
- QCloudCosXmlSample - 腾讯云 COS XML 接口测试 demo;
- COSTranferPractice - 腾讯云 COS XML 体验 demo,您可以参考 快速体验 来体验 COS 传输实践 demo;
- QCloudCSPSample - 私有云体验 demo。
如果您需要在私有云的环境下运行 COSTransfer、QCloudCosXmlSample 和 COSTransferPractice ,请先修改 CosXmlService 类的初始化方式(具体初始化方式请参考 CSP 快速入门 的初始化部分),即可进行兼容;
- QCloudCosQuickStart - 腾讯云 COS XML 快速体验,包含了 cossign 临时密钥服务和 Android 简单示例两个工程【请参考 COSTranferPractice 工程】。
- QCloudFaceInSample - 腾讯云 FaceIn 人脸核身 接口 demo。
示例是标准的 Android Studio 工程,您可以直接导入 IDE 中,点击运行即可。
如果没有安装,可以参考 教程。
编译成功之后会自动安装到连接的设备或者模拟器中,如下所示:
cd QCloudCosXmlSample
在 Windows 下请运行:
gradlew installDebug
在 Linux 或者 Mac 下请运行:
./gradlew installDebug
如果您想查看腾讯云 Android SDK 的代码,可以参考 这里 。
腾讯云 Android SDK 和 示例 通过 MIT
License 发布。
Copyright (c) 2017 腾讯云
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.