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
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