Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
Android locale currency symbol error

I'm trying get currency symbol based on where is user located (what language he have in smartphone). I'm using this code

String currency = Currency.getInstance(Locale.getDefault()).getSymbol();

On my phone Xiaomi Redmi 4 Prime it works. I tested english(GB,US), german and slovak language. But when I run test on firebase testlab devices I got error

Unsupported ISO 3166 country: de

I was looking into methods in Locale and Currency and I found

Locale.getDefault().getVariant() + "  " + Locale.getDefault().getCountry()

this code return on my smartphone in Slovak language " SK" and in German language " DE" but on firebase devices it returns " " nothing. And

Currency.getInstance

is using locale.getCountry() to determine country.

Thanks you any answers.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda