Super Board
  • iOS
  • Android : Java
  • Web
  • React Native
  • Introduction
    • Overview
  • Sample code
  • Demo app
  • SDK downloads
  • Quick start
  • Guides
    • Draw
    • Turn pages
    • Zoom in or out
    • Switch a whiteboard
    • Get whiteboard list
  • Tutorials
    • Create and switch between multiple wihteboards
  • Error codes
  • Server API V2
  • Documentation
  • Super Board
  • Sample app
Sample code
Download

Here we provide you with a sample application to experience the ZEGOCLOUD's Super Board, and the following describes how to run the sample code.

Prerequisites

  • Android Studio 4.0 or later.

  • Android SDK Packages: Android SDK 30, Android SDK Platform-Tools 30 or later.

  • An Android device or Simulator that is running on Android 5.0 or later and supports audio and video. We recommend you use a real device (Remember to enable the USB debugging).

  • The Android device is connected to the internet.

  • Contact the ZEGOCLOUD Technical Support to get the AppID and AppSign for SDK integration.

  • By default, the features of this product are not enabled. To use these features, you will need to contact ZEGOCLOUD Technical Support to enable them first.
  • For SDK version 2.3.0 or later, you can also use Tokens for authentication. To upgrade the authentication mode, refer to the Upgrade the authentication mode from AppSign to Token.

Run the sample code

  1. In Android Studio, click Open an Existing Project.

    image_20201127105738483

  2. Open the ZegoSuperboardDemo folder in the unzipped sample code package.

    /Pics/Android/ZegoSuperBoard/20210823_120204.png

  3. Modify the KeyCenter.java file with the AppID and AppSign (remember to add an "L" after the AppID) that you get in the Prerequisites steps.

public class KeyCenter {

    public final static long APP_ID = YOUR_APP_ID;   
    public final static String APP_SIGN = YOUR_APP_SIGN;     

}
  1. Connect the Android device to your computer, after you enabled the developer mode and USB debugging on the device, the option box in the upper place of Android Studio changes like the following, which means you are ready to run the sample code on the Android device.
    image_20210302564451783
  1. Click the Run button to run the sample code and experience the In-app Chat service.

    image_20210302173148802

Page Directory