better error messages when Gear is not available

Closes https://github.com/frankmorgner/vsmartcard/issues/106
This commit is contained in:
Frank Morgner
2017-07-18 08:57:11 +02:00
parent be10101028
commit b312487b3e
2 changed files with 4 additions and 3 deletions

View File

@@ -83,6 +83,7 @@
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />

View File

@@ -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;