The Parse.ly Android SDK is a Java library providing Parse.ly tracking functionality to native Android apps. Like any other framework you might include in your project, the Parse.ly SDK provides a programming interface usable from your application code.
The official repository is hosted on Github.
If you want to track activity on your Android app, first download a release or clone the repository with:
git clone http://github.com/Parsely/parsely-android.git
The repository's primary purpose is to host the open source Parse.ly Android SDK,
implemented as a Java module in /parsely. This module is symlinked in
the /ParselyExample/app/src/main/java/com directory as an example of
how to integrate the SDK in a typical Android Studio project. You can open
ParselyExample as an Android Studio project and explore a typical SDK integration.
To integrate Parse.ly mobile tracking with your Android Studio app:
-
Copy the
parselyandroiddirectory to your project's top-level package directory (in a default Android Studio project, this is/app/src/main/java/com). The directory tree should look like/app/src/main/java/com/parsely/parselyandroid. -
In
Build -\> Edit Libraries and Dependenciesunder theDependenciestab, use the green+to add two Library Dependencies:org.codehaus.jackson:jackson-core-lgpl:1.9.13andorg.codehaus.jackson:jackson-mapper-lgpl:1.9.13 -
Add the following lines to your
AndroidManifest.xmlfile:<uses-permission android:name="android.permission.INTERNET"/\> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/\> -
Add the following lines to
app/build.gradle:packagingOptions { exclude 'META-INF/LGPL2.1' exclude 'META-INF/LICENSE' exclude 'META-INF/NOTICE' }
Full instructions and documentation can be found on the Parse.ly help page.