Example code for integrating LayerKit.
QuickStart is a sample application highlighting how to integrate LayerKit, the Android SDK for the Layer communications platform. It presents a very simple example of a chat app using Layer.
The QuickStart application requires Android Studio and the Layer SDK. Dependencies are managed via Maven to simplify installation.
- Clone the project from Github:
$ git clone https://github.com/layerhq/quick-start-android.git
- Open the workspace in Android Studio
- Replace LAYER_APP_ID in MainActivity.java (line 11) with your App ID from http://developer.layer.com. If you skip this step you will get an error on app launch.
- (Optional) Replace GCM_ID with your own Google Cloud Messaging ID (instructions can be found here: https://developer.layer.com/docs/guides#push-notification)
- Build and run the QuickStart application on an Emulator and a physical Device to start a 1:1 conversation between them.
- Demonstrates how to implement authentication, typing indicators, and metadata
- Provides a reference implementation for driving Message UI
In order to populate the sample app with content, you must configure the following variable inside Constants.h:
LAYER_APP_ID
: The Layer application identifier for you application.
The authentication process requires that you provide a sandbox app identifier that has been configured to use the Layer Identity Provider.
QuickStart was crafted in San Francisco by Neil Mehta during his work on Layer. At Layer, we are building the Communications Layer for the Internet. We value, support, and create works of Open Source engineering excellence.
QuickStart is available under the Apache 2 License. See the LICENSE file for more info.