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:

  1. Permission-Checking for location permissions
  2. Check if BLE is activated (Bluetooth Check)
  3. Regenerate and show HS50ConnectionCode by calling HS50ConnectionCode.random
  4. Start searching for the Connection code by using NIMMSTAConnectionManager.connectAsync
  5. If scanner found device, it will reflect this in the UI
  6. Error handling if something breaks
  7. It cancels searching for devices once activity hides

Author
NIMMSTA Team

Copyright
NIMMSTA GmbH & IBPG 2020

License
NIMMSTA GmbH