Reputation: 1241
I am developing application for multi-languages. The static strings in my application like "Are you want to quit?" have been replaced with the key values in strings.xml file from android application's res folder. But I am unable to give the localized messages for exceptions in my application. I have tried the getLocalizedMessage() in the catch block, but this also return message in English only. How can I give the localized messages for Exceptions in Android.?
Upvotes: 1
Views: 1727
Reputation: 11073
The exception responses are in the language of the current thread locale.
These are the locales possible
Upvotes: 1