Reputation: 487
So options are: use language based detection or use location based detection.
The language based detection should be mostly fine, unless you're non native English speaker like me, use en_US but are used to Celsius scale and live outside US.
The location based detection should be mostly fine too, unless you're an European traveling to US or the other way around in which case your scale changes as you travel.
Is there some system wide setting for this? Seems like all the weather widgets offer you option to switch between F/C but the best would be to detect the setting value in advance.
Upvotes: 5
Views: 2290
Reputation: 2343
getTemperature()
APIs were recently added.
Source: https://developer.android.com/about/versions/14/features#regional-preferences
Upvotes: 1