On 03/03/11 16:35, Keyhan wrote: > I have had this problem for a long time. On 3 mar, 07:07, Amirr Karimi wrote: > I wanna open for Shachar Shemesh, 13:13 น. Try persian browser and persian soft keyboard on android market. For browsing the internet and writing sms there are though applications that can show the text correctly. Some of the manufcturors has tried to fix the problem by themselves, so for example samsung firmware for middle east can handle arabic alphabet, but the real solution will come with Android 2.4 I guess (the one after gingerbread for mobile phones). This is something that works in Iphone from day one, but Android has managed to miss this even for Android 2.3. Locale locale = new Locale('fa') return String.format(locale, '%04d', year) + '/' + String.format(locale, '%02d', month) + '/' + String.format(locale, '%02d', day) You could also use library, which not only provides you with simple APIs like PersianDate.toStringInPersian() but also lets you have Persian DatePicker and CalendarView. You can simply use a Persian font for the view in case the default font does not support Persian numbers. The simple and correct way is to use Locale and String.format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |