Socket ScanAPI Reference
}
/**
* an error occurs during the retrieval of ScanObject
* from ScanAPI, this is critical error and only a restart
* can fix this.
*/
public void onErrorRetrievingScanObject(long
}
};
The same notification handler but this time for the BlackBerry version of Scanner
Settings:
private
ScanApiHelperNotification
public void
System.exit(0);
}
public void onScanApiInitializeComplete(long
("+_scanAPIInitError+")");
application",Field.FIELD_HCENTER));
}
public void onErrorRetrievingScanObject(long
}
public void onError(long
}
public void
© 2013 Socket Mobile, Inc.
intent.putExtra(EXTRA_SYMBOLOGY_NAME,decodedData.getSymbologyName());
intent.putExtra(EXTRA_DECODEDDATA,decodedData.getData());
sendBroadcast(intent);
Intent
intent=new
Intent(NOTIFY_ERROR_MESSAGE);
String
text="Error unable to retrieve ScanAPI message:
text+="("+result+")";
text+="Please close this application and restart
intent.putExtra(EXTRA_ERROR_MESSAGE,text);
sendBroadcast(intent);
_scanApiHelperNotification=new
onScanApiTerminated() {
// Display an error message indicating that ScanAPI failed
// to initialize correctly
_scanAPIInitError=result;
if(SktScanErrors.SKTSUCCESS(result)){
synchronized(UiApplication.getEventLock()){
delete(_pleaseWaitWhileInitializingScanAPI);
add(_displayDeviceslist);
}
}
else{
UiApplication.getUiApplication().invokeLater(new
public void
}
});
}
//
TODO
Auto-generated method stub
result) {
//
TODO
Auto-generated method stub
onDeviceRemoval(DeviceInfo deviceRemoved) {
synchronized(UiApplication.getEventLock()){
result) {
";
it";
ScanApiHelperNotification() {
result) {
Runnable() {
run() {
synchronized(UiApplication.getEventLock()){
Status.show("Unable to initialize ScanAPI
_ScanApi=null;
delete(_pleaseWaitWhileInitializingScanAPI);
add(new
LabelField("Please restart this
}
result) {
28/152
Need help?
Do you have a question about the ScanAPI and is the answer not in the manual?