Q:

Non-English words in android application

I a content rich application for the Indian market and want to show some text in Hindi (Indian language).
One option is to create image with the text and add the image in the activity. But it becomes too complicated to create and manage images of various sizes.
Is there any way out by which I can display hindi text without messing with the images.

A:

You should be able to simply display the text in a TextView. If it does not display correctly, it's probably a font problem. You can package a custom font with your app and use it in a TextView very simply. Just put a .ttf font file (it needs to support Unicode encoding of your text) in your project's ./assets folder and include code similar to this in your activity's onCreate method:
TextView tv = (TextView) findViewById(R.id.view_for_hindi_text);
Typeface font = Typeface.createFromAsset(getAssets(), "MyHindiFont.ttf");
tv.setTypeface(font);

