i want to develop an application which contain malyalam text for that i want to add malayalam font.. is this compatible on all android devices.can any one please help me to
Did you try to change your localization preferences in Settings? That might help you see if malayalam is even available on Android. If you do have malayalam in the list of localizations, then select it. If the text on the menus shows up as "boxes", then Malayalam is not supported as of now. To do this in code, you can try the following:
Locale[] lArray = this.getAvailableLocales();
for(int i = 0; i < lArray.size(); i++) {
log.v(this.toString(), "Locale = " + getDisplayLanguage(lArray[i]));
}
The above code is by no means perfect as I have not tested it. But something on these lines should suffice.
HTH,
Sriram