How do I get the CPU temperature?

后端 未结 5 1604
挽巷
挽巷 2020-12-10 04:39

I know it\'s somehow possible to get the CPU\'s temperature because I downloaded an app that does it in an unrooted device. How is it done?

edit: The application is

5条回答
  •  一整个雨季
    2020-12-10 04:57

    The temperature sensor even if exists if for the battery temperature and CPU temperature.

    Most phones only include CPU temperature measurement sensor Sensor.TYPE_TEMPERATURE which is deprecated

    You should use Sensor.TYPE_AMBIENT_TEMPERATURE which I don't think many phones have.

    For More information please go through this

    http://developer.android.com/reference/android/hardware/Sensor.html#TYPE_AMBIENT_TEMPERATURE

提交回复
热议问题