Super Board
  • iOS
  • Android : Java
  • Web
  • Introduction
    • Overview
    • Restrictions
  • Sample code
  • Demo app
  • SDK downloads
  • Getting started
  • Guides
    • Draw
    • Turn pages
    • Zoom in or out
    • Switch a whiteboard
    • Get whiteboard list
    • Manage shared files
    • Create and use H5 file
  • Tutorials
    • Create and switch between multiple wihteboards
  • Error codes
  • Server API V2
  • API Documents
  • FAQ
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.

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
0.1 Prerequisites
0.2 Run the sample code