better error messages when Gear is not available
Closes https://github.com/frankmorgner/vsmartcard/issues/106
This commit is contained in:
@@ -83,6 +83,7 @@
|
|||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
|
<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/assets" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
|
<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/classes" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
|
||||||
|
|||||||
@@ -143,11 +143,11 @@ public class SmartcardProviderService extends SAAgent {
|
|||||||
*/
|
*/
|
||||||
stopSelf();
|
stopSelf();
|
||||||
} else if (errType == SsdkUnsupportedException.LIBRARY_NOT_INSTALLED) {
|
} 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) {
|
} 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) {
|
} 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 false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user