Yeah, we realized that problem a few minutes after publishing the question.
Maybe there is a service on google / android to request the default currency for a google account, but it seems a bit obfuscated because it depends on the billing address of the default credit card set up on the users google account. As a fast work around we are going to check with the user's locale and if it doesn't match we will try with other common locales. If it still doesn't match we will iterate over all locales. That method it's a shit, but at now is the only method I have found.... Thanks! El viernes, 11 de enero de 2013 01:40:18 UTC+1, Lew escribió: > > adrian del campo wrote: > >> Is there any way to convert a currency symbol to the corresponding ISO >> code in Java/Android? >> > > What locale would you use for "$"? Brunei Darussalam (ar/BN)? Chile > (es-cl/CL)? Colombia (es-co/CO)? Hong Kong (zh-hk/HK)? > > >> I have seen that Google Play in-app billing APIv3 can send us the item >> price including the currency symbol, but then we are storing the price and >> currency in different fields, so we can validate if the payment has a valid >> currency. >> >> I know that I can iterate all the locales and compare the currency >> Symbols, but I think there must be a easier way to do this task. >> > You know that, do you? > > -- > Lew > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

