June 2017
Intermediate to advanced
232 pages
5h 4m
English
When the Android Things app is destroyed, it is important to release all the connections we have used to exchange data with the sensor and remove all listeners. In this way, we free all the resources used by the app. In more details, we have to release the SDA pin used to communicate to the sensor so that other apps can reuse it. In order to destroy the app gracefully, we have to execute the following steps:
The best approach is executing the previous steps in the onDestroy method of our monitoring ...
Read now
Unlock full access