Skip to main content
Samsung Developer Program

Look Development, Initialization, and Slook Class

Look development architecture, requirements, and environment; and Look initialization and Slook class


  • S-Pen features SmartClip and PointerIcon were deprecated in Android 7.0 Nougat.

  • The S-Pen features in the Look SDK (AirButton, SmartClip, WritingBuddy) were deprecated in Android 7.0 Nougat.

  • The AirButton and the WritingBuddy features were deleted as of Look SDK version 1.4.0.

Look Development Environment

The section describes the Look architecture, files, user device requirements, and IDE setup.


The Look architecture consists of:

  • Applications: One or more applications that use Look
  • SLookSDK: Look UI components
  • Slook-support
  • View System: Android Framework View System



Jar files:

  • look-v1.3.0.jar
  • sdk-v1.0.0.jar

 Imported packages:


User Device Requirements

The Look package uses a static Java library that depends on internal Android framework modules, which means that the Look package only runs on devices that support those modules. Some Samsung Smart Devices do not support Look. Look S-Pen requires that an S-Pen be used to access its features.

To support Look Edge and Look S-Pen, user devices must meet the following:

  • The device must have a Samsung implementation installed in the Android Framework’s View System.
    Note: If a user device does not have this implementation, Look Edge and S-Pen functions will not work on the device. However, no build errors or exceptions will occur.

  • To support Look Edge, the device must have a curved Edge screen on one side (Samsung Note Edge device) or on two sides (Samsung S7, S6 Plus, and S6 Edge devices).

  • To support Look S-Pen, the device must have a Samsung S-Pen (Samsung Note 1, Note 2, Note 3, Note 4, and Note Edge devices).

Setting Up the IDE

To develop applications for Samsung mobile devices, configure your Android development environment to meet the following requirements. If your development environment is already configured, you can skip this section.


To set up a Look project in Android Studio:

  1. Add the look-v1.3.0.jar and sdk-v1.0.0.jar files to the libs directory.

    Sample Edge Project in Android Studio

  2. In the build.gradle, add dependencies for the SDK library folder.
dependencies{ compile fileTree(include: '*.jar', dir: 'libs')


  1. In the AndroidManifest.xml, specify the following permission.

<uses-permission android:name= ""/>

Slook Class API Structure

This section introduces the Slook class API methods that initialize Look Edge and S-Pen and gets fundamental Look SDK and user device support information..  

For API details, see the online Look API Reference (



Slook( ) Instantiates an Slook object to support the Look Edge and S-Pen operations and gets fundamental SDK and device support information.


int getVersionCode() Returns the version code of the Look SDK package.
java.lang.String  getVersionName() Returns the name of the Look SDK package.


initialize(Context arg0 )

Initializes Look Edge and S-Pen using the specified context:

arg0 Name of the context that is to run Look Edge and S-Pen

Throws an SsdkUnsupportedException if the user's device is not a Samsung device or does not support all Look features:  

VENDOR_NOT_SUPPORTED The device is not a Samsung device and does not support any Look Edge or S-Pen features.
DEVICE_NOT_SUPPORTED The user's device is a Samsung device that does not support one or more Look Edge and/or S-Pen features.


isFeatureEnabled(int type)

Determines whether or not the user's Samsung device supports the specified Look feature: 

type Kind of Look Edge or S-Pen feature:
  COCKTAIL_PANEL Look Edge Single Plus, Edge, and Feed Panels
  COCKTAIL_BAR Look Edge Immersive Panel
  AIRBUTTON Look S-Pen AirButton 
  SMARTCLIP Look S-Pen SmartClip
  WRITINGBUDDY Look S-Pen WritingBuddy
  SPEN_HOVER_ICON Look S-Pen PointerIcon

Returns true when the user's Samsung device supports the specified feature or false otherwise.

  • Was this article helpful?