dynamically changing application's language in android
<p>Ok, so I have an app and <strong>remote service</strong> running. every 5 hours for example, the service makes a <strong>request to a server</strong>, get some xml data, parse it and then fill a database with it.</p>

<p>When language tag is detected while parsing I get the URL attribute, download a language file from same server and store it in database too.</p>

<p>So now I want my application language to change with that new language after it has been downloaded.</p>

<p>I have a default language in assets which its been used when app is installed for the first time. but after that I need my language to be properly updated when new language is downloaded. </p>

<p>I use hashmap for setting the language for my UI<br>
example: </p>

<pre><code>title.setText(Utils.langhashmap.get("screenCaption1");
</code></pre>

<p>I can create hashmap with the new language but I need somehow to refresh my screens with the new data.</p>

<p>I tried using broadcast receiver (registering it in every activity screen) and in his onReceive() updating some textviews but its not properly working on a tablet. It's got to be another way .. much better than that.</p>
