Setup

The following tools are needed to do the Code Lab activity:

  • Java SE Development Kit 10 (JDK)
  • Android Studio / Eclipse IDE with Android Developer Tools
  • Samsung Note10 or Tab S6 running at least Android 9.0 or higher
  • Sample project which is a Breakout game from https://github.com/fadden/android-breakout

In Android Studio, click Open an existing Android Studio project.

Locate the Android Project from the directory and click OK.

To install SpenRemote for Android Studio:

  1. Add the spenremote-v1.0.X.jar and sdk-v1.0.0.jar files to the libs folder in Android Studio

  2. Add dependencies for the SDK library folder in build.gradle

    dependencies{
            implementation fileTree(dir: 'libs', include: ['*.jar'])
            … 
    }
    

Sample Code

Here is a sample code for you to start coding this activity. Feel free to download them and start your learning experience!

S Pen Remote SDK Sample Code272.50 KB