How can I get the temperature in Android, java ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can I get the temperature in Android, java ?

Hi ! I want to develop an Android app to get the temperature of the ambient air around the phone in java. It's possible ? If you know how can I this, please answer this post.

25th May 2018, 8:17 PM
Vincent Philippe
Vincent Philippe - avatar
3 Answers
+ 6
Dont know if java can do that,all the temperature apps on the playstore were fake(my previous phone had an inbuilt thermometer),also i think your enquiry is more of a hardware problem than a software problem?if the phone has no thermometer installed youre chasing ghosts
25th May 2018, 8:29 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 3
Thank you everyone for your answer but I just found on Android Developer Website how to get SensorManager of the phone at this link: https://developer.android.com/guide/topics/sensors/sensors_environment
25th May 2018, 8:42 PM
Vincent Philippe
Vincent Philippe - avatar
+ 2
you can use api of some weather site to get what you want
27th May 2018, 12:36 PM
ashad nasim
ashad nasim - avatar