"0.0.0.0", // bind to all available interfaces\r
0,\r
QualityOfService.LOW, filePath + OIC_CLIENT_JSON_DB_FILE);\r
- OcPlatform.Configure(cfg);\r
try {\r
/*\r
* Initialize DataBase\r
*/\r
+\r
+ OcPlatform.Configure(cfg);\r
+\r
String sqlDbPath = getFilesDir().getAbsolutePath().replace("files", "databases") +\r
File.separator;\r
File file = new File(sqlDbPath);\r
} catch (OcException e) {\r
logMessage(TAG + "provisionInit error: " + e.getMessage());\r
Log.e(TAG, e.getMessage());\r
+ } catch (UnsatisfiedLinkError e) {\r
+\r
+ // Note : Easy setup is built with SECURED = 0, but user still selects Security feature\r
+ // while running the Mediator App it couldn't find "libocprovision.so".\r
+ // As per the programmer guide, security feature should be invoked only if build is done with SECURED = 1.\r
+ Log.e(TAG, " Easy setup is built with secured = 0, but executed with security feature");\r
+ Toast.makeText(this,"Security is not enabled [Easy setup is built with SECURED = 0]",\r
+ Toast.LENGTH_LONG).show();\r
+ mEnableSecurity.setChecked(false);\r
}\r
}\r
/**\r