Performance
This is the developer guide for Chat SDK v1. The new Chat SDK v2 for Android is now available and is the recommended version to integrate Chat into your mobile app.
The following memory usage and footprint information was measured when using our demo apps. We've based our tests off of Nexus 5 (codenamed Hammerhead) device.
Footprint
The footprint will be smaller if your app and the SDK share libraries. For example, the footprint is 0.5MiB if you are already using Android support libraries that the SDK uses. The footprint is 2.1MiB if your app and the SDK have no shared libraries.
This footprint can be reduced further with Proguard.
Memory Usage
Component | Approximate Memory Usage (MB) |
---|---|
Start chat | 2.0 |
Chat 20 messages | 3.9 |
Download 1 screenshot attachment | 7.9 |
Download 2 screenshot attachments | 12.4 |
Upload 1 screenshot attachment | 7.4 |
Upload 2 screenshot attachments | 11.9 |
Upload camera photo | 25.8 |
Method count
1800 (without dependencies) 4500 (with dependencies, except Android Support Library)
65K method limit
Through the specification of Dalivik Executable (DEX) files the total number of referenced methods is limited to 65.536. As an app grows, it is possible that the method count exceeds this limitation. Allow multidex in your project build file to avoid the 65K limit.
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
...
minSdkVersion 10
targetSdkVersion 24
...
// Enabling multidex support.
multiDexEnabled true
}
...
}
dependencies {
compile 'com.android.support:multidex:1.0.1'
}
More details can be found on the official Android developer page.