Skip to content

Commit e72a453

Browse files
Update README.md
1 parent 8a0d95b commit e72a453

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,20 @@ To use Aspose Barcode Cloud for Android you need to register an account with [As
6363
* Go to file *app/src/main/java/com/example/asposebarcodecloud/MainActivity.kt* and set *clientId* and *clientSecret* to apropriate values from <https://dashboard.aspose.cloud/applications>
6464

6565
* Build project and run application on connected device or emulator.
66+
## Generate Code128 BbarCode in Android using Java
67+
68+
```java
69+
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
70+
ApiClient client = new ApiClient("MY_CLIENT_ID", "MY_CLIENT_SECRET");
71+
72+
BarcodeApi api = new BarcodeApi(client);
73+
74+
String type = "code128";
75+
String text = "text example";
76+
77+
File result = api.getBarcodeGenerate(type, text);
78+
System.out.println(result);
79+
```
6680

6781
## Licensing
6882

0 commit comments

Comments
 (0)