Skip to content Skip to sidebar Skip to footer

How To Show Hindi Text In Android?

I am trying to paste Hindi characters in an array with elements like String[] arr = {'आपका स्वागत है','आपका स्वागत है'}; but its giv

Solution 1:

Switch your text encoding to UTF-8.

In Eclipse go to Window -> Preferences, select General -> Workspace. From the Text file encoding dropdown, select UTF-8.enter image description here

Solution 2:

Thanks i found the solution...

  1. create an array under the value folder
  2. Use the font that support Hindi under the assets folder
  3. textview.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/Hindi.ttf")); its working fine...

Solution 3:

Solution 4:

Thanks i found the solution...

  1. Create an array under the value folder

  2. Use the font that support Hindi under the assets folder

  3. textview.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/Hindi.ttf"));

its working fine...

Post a Comment for "How To Show Hindi Text In Android?"