Bada Question:
Download Job Interview Questions and Answers PDF
Suppose I have ISO 3166-1 country code information from a server. How do I convert it to a country name that is readable by a user ?
Answer:
Construct a Locale object with the required country code and get the name of the country from the Locale object
For example:
Locale locale(LANGUAGE_ENG, COUNTRY_US);
Osp::Base::String countryName;
locale.GetCountryName(countryName);
For example:
Locale locale(LANGUAGE_ENG, COUNTRY_US);
Osp::Base::String countryName;
locale.GetCountryName(countryName);
Download Bada Interview Questions And Answers
PDF
Previous Question | Next Question |
How to change the locale? Is there an API for it? | Suppose I am unable to get any GPS data at my work location. What are the possible reasons? |