Skip to content

Juude/aliyun-log-android-sdk

 
 

Repository files navigation

Alibaba Cloud SLS SDK for Android

Introduction

This document mainly describes how to install and use the SLS Android SDK. If you have not yet activated or do not know about the SLS service, log on to the SLS Product Homepage for more help.

Environment requirements

  • Android 2.3 or above
  • You must have registered an Alibaba Cloud account with the SLS activated.

Installation

SLS Android SDK is dependent on fastjson.

or you can compile jar by source code

# clone
$ git clone https://github.com/aliyun/aliyun-log-android-sdk.git

# access the directory
$ cd aliyun-log-android-sdk/aliyun-sls-android-sdk/

# run task(must jdk 1.7 above)
$ ../gradlew releaseJar

# location
$ cd build/libs && ls

Configure permissions

The following are the Android permissions needed by the SLS Android SDK. Please make sure these permissions are already set in your AndroidManifest.xml file. Otherwise, the SDK will not work normally.

<uses-permission android:name="android.permission.INTERNET"></uses-permission>

Quick start

The basic processes for uploading log is demonstrated below. For details, you can refer to the following directories of this project:

the sample directory: click to view details.

License

  • Apache License 2.0.

Contact us

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%