Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

233
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!