console.log('getDefaultAdapter OK: ' + (new Date().getTime() - time) + ' milliseconds.');
callback();
} catch (error) {
- console.error('Problem with bluetooth device. Application can\'t work properly: ' + error.message);
+ alert('Problem with bluetooth device. Application can\'t work properly: ' + error.message);
+ tizen.application.getCurrentApplication().exit();
}
},