这是本文档旧的修订版!
Android SDK
android SDK下载
首先去http://www.rongkecloud.com/service/download/下载android SDK。
Android SDK目录结构说明
在上述地址下载Android SDK文件为RKCustomerService-Android.zip,解压此压缩包,如下图:

- RKCustomerServiceSDK(Android-v1.0.1.14)-20160323.zip
为Android SDK library。
- RKCustomerServiceSDKDemo(Android-v1.0.1.14)-20160323.zip
为Android SDK Demo源码。
- 融智客服客户端Android SDK集成使用说明V1.1-160315.docx
为Android SDK集成文档说明。
Android SDK集成方法
Android Studio集成方法
Eclipse集成方法
SDK配置
- 配置权限到您的AndroidManifest.xml文件中
<uses-permission android:name=“android.permission.INTERNET”/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.VIBRATE"/>
-配置Activity到您的AndroidManifest.xml中
<!-- 设置连接service页面-->
<activity android:name="com.rongkecloud.customerservice.ui.RKServiceChatConnectActivity"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Translucent"/>
<!-- 设置聊天页面-->
<activity
android:name="com.rongkecloud.customerservice.ui.RKServiceChatMsgActivity"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar"
android:windowSoftInputMode="adjustResize"/>
<!-- 设置留言给客服页面-->
<activity android:name="com.rongkecloud.customerservice.ui.RKServiceChatLeaveMessageActivity"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar"/>
<!-- 设置图片滑动页面-->
<activity android:name="com.rongkecloud.customerservice.ui.RKServiceChatViewImagesActivity"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar"/>
-配置receive到您的AndroidManifest.xml中
<receiver
android:name="com.rongkecloud.android.lps.RKServiceBroadcastReceiver"
android:enabled="true"
android:exported="false" >
<intent-filter android:priority="90000" >
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<action android:name="android.net.wifi.RSSI_CHANGED" />
<action android:name="android.net.wifi.STATE_CHANGE" />
<action android:name="android.net.wifi.WIFI_STATE_CHANGED" />
</intent-filter>
<intent-filter>
<action android:name="lps.message.receive" />
<action android:name="action_reconnect" />
<action android:name="action_ping" />
<data android:mimeType="*/*" />
</intent-filter>
</receiver>
-配置service到您的AndroidManifest.xml中
<service
android:name="com.rongkecloud.android.lps.LPSDaemonService"
android:exported="false"
android:process=":remote" />
使用SDK
在您的app中做一个触发“连接客服”的事件,在此事件中将您在管理平台生成的配置代码加进去,即可正常使用融智客服客户SDK。













