Is there any Android api to find/sense room temperature programmatically in android code?

前端 未结 9 1257
天命终不由人
天命终不由人 2021-01-04 04:47

I am developing an android app for my project, I need to find room temperature as part of it. I am using Droid 2 A955 model for testing.

My Questions are:

9条回答
  •  無奈伤痛
    2021-01-04 05:40

    It seems that there is a new sensor in the API.

    This one is for the ambient temperature, but probably there are just a few devices with this implemented.

    UPDATE: it seems that the Galaxy S4 is the first phone integrating ambient temperature sensor

提交回复
热议问题