Sensorberg Smart Spaces SDK for Android / com.sensorberg.smartworkspace.sdk / AbstractNfcActivity / <init>
<init>
AbstractNfcActivity()
Abstract class for receiving NFC Intents.
If you wish to receive NFC Intents elsewhere you're free to do so,
just make sure you always pass them to SmartWorkspaceSdk.processNfcIntent
To implement:
- Add this Activity to your Manifest file with intent filter:
<intent-filter>
</intent-filter>
- Override getSdk to provide your instance of SmartWorkspaceSdk
- Provide your UI (if any) by overriding onCreate method and calling setContentView
If you don't provide any UI it will still fire onPause/onResume events on your Activity below.
- Override onTapEvent and onNfcIntent. One of those is guaranteed to be called.
- This activity will finish immediately when processing is done. (Sometimes before onResume)
If you wish to keep it for longer override canFinish and return false.
This implementation awaits until both:
If you're not sure what is host/scheme for your installation:
- Inspect NFC tag of your hardware. It will contain URI starting with scheme://host/
- Contact support@sensorberg.com