How can I read current country from device in iOS and Android?
See subject!
I am trying to read the current country from both iPad and Android tablet.
I know that in iOS, it can be obtained here:
- (NSString*)getCurrentCountryFromUserLocale
{
NSLocale *userLocale = [NSLocale currentLocale];
NSString *countryCode = [userLocale objectForKey:NSLocaleCountryCode];
return countryCode;
}
But that, surely, will require me to build an ANE? There must be a way to do that without needing custom code?
For Android, I'm even more clueless!
Any clues greatly appreciated, thanks.
G
UPDATE:
Android may be readable via this:
But still think there should be something in the Flex / AIR SDK?
