Android sample app to learn about the thermal API in Android, and used in this article. The app allows to register a thermal status listener on the device. When a thermal change occurs, the new status is communicated through a foreground notification.
- The PowerManager API, which contains thermal APIs including addThermalStatusListener and getCurrentThermalStatus().
- Keeping cool in Android Q with the thermal API