Thursday, January 10, 2013

[android-developers] currency symbol to iso code on Android

Is there any way to convert a currency symbol to the corresponding ISO code in Java/Android?

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.

Thanks a lot in advance!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment