-1

I am developing an application and I do not know how I can get the CPU usage and temperature, example in a textview. I try with TYPE_AMBIENT_TEMPERATURE to get temperature, but it does not work. The log file says that I do not have the sensor, but I but I can get the temperature and frequency using another application from the Play store. The code works fine, if I use other sensor like TYPE_GYROSCOPE or others. So, I do not know why TYPE_AMBIENT_TEMPERATURE is not working.

hmofrad
  • 1,784
  • 2
  • 22
  • 28
Wu YiYong
  • 1
  • 2

1 Answers1

0

Because very few devices have a TYPE_AMBIENT_TEMPERATURE sensor. The only devices I know have that sensor are the Galaxy S4 and Note 3.

Chrystian
  • 977
  • 3
  • 11
  • 24