Knowledge Session - Samsung SDK (Indonesian)
Knowledge Session - Samsung SDK (Indonesian)
Knowledge Session - Samsung SDK (Indonesian)
Leonardus Ardyandhita
Samsung Research And Development Institute Indonesia
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
<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);
}
}