Pen SDK, Samsung

Preview:

Citation preview

New opportunities using theSamsung S Pen SDK 2.0

Galaxy Note – Super AMOLED Display

Large 5.3” display

S-pen solution

(285 ppi)

Portable, Slim, light

1280x800

(9.6mm) (178g)

Galaxy Note – Premium Smartphone

8MP auto focus with LED flash

2 MP frontfacing camera

Shoots 1080p video

16GB storageSupport Up to 32GB SD card1 GB RAM

Wi-Fi 802.11b/g/n

AccelerometerGyroscopeCompassBarometer

Galaxy Note - Best Multi-Input Experience

Capacitive touchS Pen

256 levels of pressureSensitivity

Deep integrationWith the screenAnd the OS

The S Pen

Software

Development

Kit

Xyzmo SIGNificant

developer.samsung.com

Dev Guide SampleApplication

libspen.jar

Contents of the SDK

Libraries Add External JARs libspen.jarJava Build Path

Java Build Path

Libraries

libspen.jarAdd External JARs…

Addi ng the JAR Fi l e toYour Proj ect

Import com.samsung.sdraw.*Import com.samsung.spensdk.*Packages to Use S Pen Features

import android.app.Activity;import android.os.Bundle;

import com.samsung.sdraw.CanvasView;import com.samsung.sdraw.SDrawLibrary;import com.samsung.sdraw.SettingView;import com.samsung.sdraw.AbstractSettingView;import com.samsung.sdraw.AbstractSettingView.SettingChangeListener;

import com.samsung.spensdk.SCanvasView;import com.samsung.spensdk.SCanvasView.OnPlayCompleteUICB;import com.samsung.spensdk.SCanvasView.OnPlayProgressChangeUICB;

public class SampleActivity extends Activity {

Packages to Import

Show Animation from the Drawing

Animation

Ani mat i on

Animation

Ani mat i onShow Animation from the Drawing

Call doAnimationStart() after Load Data

Public boolean OnWindowFocusChanged(boolean item) { super.onWindowFocusChanged(item);

mCanvasView.createSAMMLibrary();

mCanvasView.setOnPlayCompleteListener( mPlayCompleteLister );

mCanvasView.setOnPlayProgressChangeListener( mPlayProgressChangeListener );

mCanvasView.setAnimationMode(true); Intent intent = getIntent(); String sDataKey = intent.getStringExtra(EXTRA_VIEW_FILE_PATH);

if (mCanvasView.loadSAMMData(sDataKey)) { mCanvasView.doAnimationStart(true); }}

Ani mat i on

Recommended