E-numbers

Today I have merged three (English, German and Slovak) versions of E-numbers app into one. Problematic was only to use different .html files in assets directory for different Locale of the device. Workaround was to assign each .html file a different name for different language and put the file path to a strings.xml for different locale like this webView.loadUrl(getResources().getString(R.string.URL));

In strings.xml I had to insert   values like this:

<string name=”URL”>file:///android_asset/enumbers.html</string>

where for different languages app uses different file name in asset directory. I hope it will help some new developers like me at Stackoverflow.com

You can get the E-numbers app as always on

google-play-small

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s