Skip to content

Commit 9ba5aae

Browse files
committed
License added
1 parent 7f2df1f commit 9ba5aae

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,16 @@ To use Aspose Barcode Cloud for Android you need to register an account with [As
1717
* Go to file *app/src/main/java/com/example/asposebarcodecloud/MainActivity.kt* and set *appSid* and *appKey* to apropriate values from <https://dashboard.aspose.cloud/#/apps>
1818

1919
* Build project and run application on connected device or emulator.
20+
21+
## Licensing
22+
23+
All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed under [MIT License](LICENSE).
24+
25+
## Resources
26+
27+
- [**Website**](https://www.aspose.cloud)
28+
- [**Product Home**](https://products.aspose.cloud/barcode/cloud)
29+
- [**Documentation**](https://docs.aspose.cloud/display/barcodecloud/Home)
30+
- [**Free Support Forum**](https://forum.aspose.cloud/c/barcode)
31+
- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
32+
- [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-barcode-product-family/)

app/src/main/java/com/example/asposebarcodecloud/MainActivity.kt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,12 @@ class MainActivity : AppCompatActivity() {
267267
} catch (e: ApiException) {
268268
runOnUiThread {
269269
stopRecognizeAnimation()
270-
showErrorMessage(e.message + ": " + e.details)
270+
271+
var message = e.message + ": " + e.details
272+
if (e.code == 0) {
273+
message = "Check AppSid and AppKey in ApiClient $message"
274+
}
275+
showErrorMessage(message)
271276
}
272277
} catch (e: Exception) {
273278
runOnUiThread {
@@ -338,9 +343,11 @@ class MainActivity : AppCompatActivity() {
338343

339344
} catch (e: ApiException) {
340345
runOnUiThread {
341-
showErrorMessage(
342-
e.details
343-
)
346+
var message = e.message + ": " + e.details
347+
if (e.code == 0) {
348+
message = "Check AppSid and AppKey in ApiClient $message"
349+
}
350+
showErrorMessage(message)
344351
}
345352
} catch (e: Exception) {
346353
runOnUiThread {

0 commit comments

Comments
 (0)