/tac-sdk-android-samples

MobileLine Android SDK Sample

Primary LanguageJavaMIT LicenseMIT

开始

准备工作

请先将本示例工程下载到本地。

第一步:创建项目和应用

在使用我们的服务前,您必须先在 MobileLine 控制台上 创建项目和应用

第二步:添加配置文件

在您创建好的应用上点击【下载配置】按钮来下载该应用的配置文件的压缩包:

解压该压缩包,您会得到 tac_service_configurations.jsontac_service_configurations_unpackage.json 两个文件,请您如图所示覆盖示例工程同目录下的配置文件。

使用

在 Android Studio 运行

将工程导入 Android Studio,并在 Android 设备中运行。

命令行运行

在工程根目录,在 Windows 下请运行:

gradlew installAdptDebug

在 Linux 或者 Mac 下请运行:

./gradlew installAdptDebug

后续步骤

了解 MobileLine:

  • 借助 Analytics 深入分析用户行为。
  • 借助 messaging 向用户发送通知。
  • 借助 crash 确定应用崩溃的时间和原因。
  • 借助 storage 存储和访问用户生成的内容(如照片或视频)。
  • 借助 authorization 来进行用户身份验证。
  • 借助 payment 获取微信和手 Q 支付能力
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.