https://github.com/zebradevs/wsc-dev-ug-sampleapp
Workstation Connect Sample app for Developers - Annex to the WSC-DEV-UG
https://github.com/zebradevs/wsc-dev-ug-sampleapp
Last synced: about 1 year ago
JSON representation
Workstation Connect Sample app for Developers - Annex to the WSC-DEV-UG
- Host: GitHub
- URL: https://github.com/zebradevs/wsc-dev-ug-sampleapp
- Owner: ZebraDevs
- License: mit
- Created: 2024-02-06T15:44:04.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-05T14:22:59.000Z (over 1 year ago)
- Last Synced: 2025-02-10T08:51:21.616Z (over 1 year ago)
- Language: Java
- Size: 118 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
*Please be aware that this application / sample is provided as-is for demonstration purposes without any guarantee of support*
## WORKSTATION CONNECT / DEVELOPERS USER GUIDE SAMPLE CODE
Sample code showing how to use some Large Screens APIs from Android and how to configure Zebra Workstation Connect according to the guidelines given in the Developers User Guide.
### Device set up to run this sample code
1. Install Zebra WSC from [https://www.zebra.com/us/en/support-downloads/software/productivity-apps/workstation-connect.html](https://www.zebra.com/us/en/support-downloads/software/productivity-apps/workstation-connect.html)
- At the time of writing, v2.0 is the latest and the sample code is compiled after that version
- Note that Android 11 is the supported OS version for v2.0
- Run the app or restart the device
- UPDATES (April 29th, 2024)
- successully validated on a TC22 running A13
- and using the newly released ZWC v.3.0.49
2. Either manually or via Stagenow set the following device Developers options
- APPS Section
- Enable freeform windows
- Force desktop mode
3. Install this sample app - this *must be* step #3
4. Grant permission to this app's applicationID to call a specific ZVA service. Use Stagenow's Access Manager.
### Reference documentation
- https://developer.zebra.com/blog/streamlining-workstation-connect-configuration-step-step-guide-developers
- Useful for permission granting through StageNow
- https://www.zebra.com/content/dam/support-dam/en/documentation/unrestricted/guide/software/wsc-dev-guide-en.pdf
### Customizing activity size
When launching an activity on the external screen, it might be useful to set its dimensions to a specific size.
Use this API
`startActivity( intent, ActivityOptions.makeBasic().setLaunchBounds(new Rect(700,0, 700+510, 1020)).toBundle());`