Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Convert Currency code to symbol Android

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 2.93k
    Comment on it

    Hello Friends,

    Here is simple code to convert currency code to symbol in android.

    public String getCurrencySymbol(String currencyCode) {
        try {
            Currency currency = Currency.getInstance(currencyCode);
            return currency.getSymbol();
        } catch (Exception e) {
            return currencyCode;
        }
    }  
    

    this method return Currency symbol for valid currency codes.

    Happy Coading :D

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: