I'd need to get the full country name from the country code.
For example for Netherlands, I'd need the Netherlands
from the country code NL
.
I thought I could do that with Locale
like:
Locale loc = new Locale("NL");
loc.getCountry();
but loc.getCountry();
is empty.
Any idea about how to do this, please? Thanks in advance!
This should work:
The first parameter of Locale is the language, which is not useful in your case.
Try to use the other constructor
Locale There does not appear to be a predefined Locale for
The Netherlands
try like this
Hope this will help out.
for a full solution TelephonyManager (from this solution):