From b312487b3ed317bba2b5baedfb6800799d8c6382 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Tue, 18 Jul 2017 08:57:11 +0200 Subject: [PATCH] better error messages when Gear is not available Closes https://github.com/frankmorgner/vsmartcard/issues/106 --- ACardEmulator/app/app.iml | 1 + .../vsmartcard/acardemulator/SmartcardProviderService.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ACardEmulator/app/app.iml b/ACardEmulator/app/app.iml index 0aad140..a55b522 100644 --- a/ACardEmulator/app/app.iml +++ b/ACardEmulator/app/app.iml @@ -83,6 +83,7 @@ + diff --git a/ACardEmulator/app/src/main/java/com/vsmartcard/acardemulator/SmartcardProviderService.java b/ACardEmulator/app/src/main/java/com/vsmartcard/acardemulator/SmartcardProviderService.java index fa35f93..62ada07 100644 --- a/ACardEmulator/app/src/main/java/com/vsmartcard/acardemulator/SmartcardProviderService.java +++ b/ACardEmulator/app/src/main/java/com/vsmartcard/acardemulator/SmartcardProviderService.java @@ -143,11 +143,11 @@ public class SmartcardProviderService extends SAAgent { */ stopSelf(); } else if (errType == SsdkUnsupportedException.LIBRARY_NOT_INSTALLED) { - Log.e(TAG, "You need to install Samsung Accessory SDK to use this application."); + Log.e(TAG, "You need to install Samsung Accessory SDK to use NFC emulation via Samsung Gear."); } else if (errType == SsdkUnsupportedException.LIBRARY_UPDATE_IS_REQUIRED) { - Log.e(TAG, "You need to update Samsung Accessory SDK to use this application."); + Log.e(TAG, "You need to update Samsung Accessory SDK to use NFC emulation via Samsung Gear."); } else if (errType == SsdkUnsupportedException.LIBRARY_UPDATE_IS_RECOMMENDED) { - Log.e(TAG, "We recommend that you update your Samsung Accessory SDK before using this application."); + Log.e(TAG, "We recommend that you update your Samsung Accessory SDK before using NFC emulation via Samsung Gear."); return false; } return true;