java - How to get System Language? -


in application supporting multiple languages using locale.setdefault(newlocale); changing language there no way change language device default language. best way find device default language in settings programatically.

check this:

resources.getsystem().getconfiguration().locale.getlanguage();


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -