0% found this document useful (0 votes)
71 views14 pages

Knowledge Session - Samsung SDK (Indonesian)

This document discusses how to build applications using the Samsung Galaxy SDK. It provides instructions for downloading the SDK from the Samsung developer website and installing required packages in the Android SDK Manager. The downloaded SDK contains jar files, documentation, and a programming guide. The steps for initializing the SDK in an Android project include copying the jar files to the libs folder and adding permissions to the manifest. Code examples are given for initializing the SDK, registering and identifying fingerprints using the SpassFingerprint class, and setting listeners to handle registration and identification results. A link is provided to an example application using the SDK. The presentation closes by asking if there are any questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views14 pages

Knowledge Session - Samsung SDK (Indonesian)

This document discusses how to build applications using the Samsung Galaxy SDK. It provides instructions for downloading the SDK from the Samsung developer website and installing required packages in the Android SDK Manager. The downloaded SDK contains jar files, documentation, and a programming guide. The steps for initializing the SDK in an Android project include copying the jar files to the libs folder and adding permissions to the manifest. Code examples are given for initializing the SDK, registering and identifying fingerprints using the SpassFingerprint class, and setting listeners to handle registration and identification results. A link is provided to an example application using the SDK. The presentation closes by asking if there are any questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Knowledge Session

Bagaimana membangun aplikasi


dengan
Samsung Galaxy SDK

Leonardus Ardyandhita
Samsung Research And Development Institute Indonesia
Download Samsung Galaxy SDK

developer samsung website

Android SDK Manager


Download Samsung Galaxy SDK

1. Buka http://developer.samsung.com/galaxy
2. Pilih dan download SDK yang diinginkan
developer samsung website
Dowload Samsung Galaxy SDK
1. Buka Android SDK Manager
2. Masukkan add-on site pada Tools>Manage Add-on sites:
http://developer.samsung.com/sdk-
manager/repository/Samsung-SDK.xml
3. Install package yang diinginkan

Android SDK Manager


Getting Samsung Galaxy SDK

Isi di dalam sdk yang didowload :


file sdk-v1.0.0 (.jar)
file library terkait (.jar)
dokumentasi API
file programming guide (.pdf)
Mari kita ke code nya
Inisialisasi SDK pada code

Copy file sdk-v1.0.0 (.jar) dan file library terkait (.jar)


Paste ke folder libs pada project android
Inisialisasi SDK pada code

<manifest >

<uses-permission
android:name = com.samsung.android.providers.context.permission.WRITE_USE_APP_FE

<application
android:label="@string/app_name">
<activity android:name=com.example.MainActivity">

</application>

</manifest>
Inisialisasi SDK pada code
public class MainActivity extends Activity{
private SPass spass;

@Override
protected void onCreate(Bundle instance){
super.onCreate(instance);
spass = new Spass();
try{
spass.initialize(this);
}catch(SdkUnsupportedException e){
Log.e(ERROR,sdk not supported);
}
}
}
Menggunakan SDK pada code
public class MainActivity extends Activity{
private SPass spass;
private SPassFingerprint spassFingerprint;
@Override
protected void onCreate(Bundle instance){
super.onCreate(instance);
spass = new Spass();
try{
spass.initialize(this);
spassFingerprint = new
SpassFingerprint(this);
}catch(SdkUnsupportedException e){

}
}
Menggunakan SDK pada code
SpassFingerprint.RegisterListener registerListener = new SpassFingerprint.RegisterListener() {
@Override
public void onFinished(){
Log.d(INFO,Fingerprint registered);
}
}

View.OnClickListener registerButtonListener = new View.OnClickListener() {


@Override
public onClick(View view){
spassFingerprint.registerFinger(MainActivity.this, registerListener);
}
}
Menggunakan SDK pada code
SpassFingerprint.IdentifyListener indentifyListener = new SpassFingerprint.IdentifyListener(){
@Override
public void onFinish(int i){
if(SpassFingerprint.STATUS_AUTHENTIFICATION_SUCCESS == i){
Log.d(INFO,Fingerprint found);
}else{
Log.d(INFO,Cant find your fingerprint);
}
}

}
Menggunakan SDK pada code
View.OnClickListener identifyButtonListener = new View.OnClickListener() {
@Override
public onClick(View view){
spassFingerprint.startIdentifyWithDialog(MainActivity, identifyListener, false);
}
}
Contoh aplikasi : https://bit.ly/inasdk

Ada pertanyaan ???

You might also like