By user13377336 on Jul 11, 2010
JavaME supports Unicode string objects and hence you can display text in Indian languages within your applications. Everything looks very nice when you run such application inside an emulator running on your desktop. However, things may (rather most likely) not look great when you install the application on the mobile device.
This is primarily because JavaME depends on the native support for displaying such text. This means if your device does not support Unicode font and specific encodings, you will not be able to display text in indian languages properly.
Mobile device manufacturers, in most cases, do not guarentee Unicode support. This provides a big challenge for the developer community to qualify their applications on various devices and in the huge indian market with hundreds of low-cost/high-end devices from various manufacturers such qualification is impossible. So, that brings us to the big question of this post,
For a specific device, Is the text in Indian languages displayed correctly ??
To answer this, I thought it would be nice to have a simple application that displays text in various indian languages that can be used to confirm if their device can display the text correctly. The idea is to use this application to test the native unicode support on your mobile device.
Clearly, this app is more useful when you do not have WiFi on your device which is a big number in Indian market and really my target audience for this post. If you have WiFi on your device, you can visit this site and confirm if the device can display text properly.
This application displays the "Pledge of India" in various Indian languages. The pledge is an obvious choice for such application given the Indian context. I am sure there are some folks out there who don't quite remember the pledge now and would find this application useful in that sense as well.
This application is tested on Nokia 5800 device. I had to add the Unicode font manually to the device to get it to work and still see glyphs overlapping each other for UTF-8 encoding. I'd appreciate your test results as comments here.
Topics like installing this application or the Unicode fonts on your phone are not covered in this post as I believe there is information available on the internet and rather it is more complicated
Finally, Here is the unsigned jad and jar file. It supports only Hindi & Marathi as of now. feel free to post your suggestions. If you are viewing this blog from your JavaME supported phone, clicking the link of the jar file should let you install this application.