apidocs / com.nimmsta.core.android.device / DeviceConnectActivity / <init>
<init>
DeviceConnectActivity()
The DeviceConnectActivity is the basic activity for a NIMMSTA Scanner to Connect to the Android App.
It is basically using the NIMMSTAConnectionManager.connectAsync method to connect by ConnectionCode.
It implements the following checks:
- Permission-Checking for location permissions
- Check if BLE is activated (Bluetooth Check)
- Regenerate and show HS50ConnectionCode by calling HS50ConnectionCode.random
- Start searching for the Connection code by using NIMMSTAConnectionManager.connectAsync
- If scanner found device, it will reflect this in the UI
- Error handling if something breaks
- It cancels searching for devices once activity hides
Author
NIMMSTA Team
Copyright
NIMMSTA GmbH & IBPG 2020
License
NIMMSTA GmbH