revamp android backend initialization error handling and bump the senseglove libraries to the latest experimental ble builds

This commit is contained in:
Mamadou Babaei
2025-05-09 16:32:03 +02:00
parent 4866220217
commit b5970534a6
72 changed files with 135 additions and 111 deletions
@@ -93,6 +93,18 @@ bool USGBackend::InitializeBackend()
const int32 Result = FSGConnect::Init();
switch (Result)
{
case -103:
SGLOG_ERROR("Android JNI-specific Error: Invalid Java method ID!");
return false;
case -102:
SGLOG_ERROR("Android JNI-specific Error: Invalid Java class!");
return false;
case -101:
SGLOG_ERROR("Android JNI-specific Error: Invalid Java environment!");
return false;
case -100:
SGLOG_ERROR("Android JNI-specific Error: Generic Error! Note: you should never see this!");
return false;
case -3:
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
return false;
@@ -136,6 +148,18 @@ bool USGBackend::UninitializeBackend()
const int32 Result = FSGConnect::Dispose();
switch (Result)
{
case -103:
SGLOG_ERROR("Android JNI-specific Error: Invalid Java method ID!");
return false;
case -102:
SGLOG_ERROR("Android JNI-specific Error: Invalid Java class!");
return false;
case -101:
SGLOG_ERROR("Android JNI-specific Error: Invalid Java environment!");
return false;
case -100:
SGLOG_ERROR("Android JNI-specific Error: Generic Error! Note: you should never see this!");
return false;
case -3:
SGLOG_ERROR("An Unexpected error occurred. Please try again.");
return false;