Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 98
Registered: ‎08-17-2010
My Device: BlackBerry 8300 simulator
My Carrier: Vodafone

How To change input language for application.

Hello friends,

I am creating a multilingual application in arabic and english language. For this i create resource bundle and provide option to change language within appliation, but when i change language from english to arabic, language is changed but in text field no changes reflects.

For this i write code like this,

to set  english

 Locale.setDefault(Locale.get(Locale.LOCALE_en));
Locale.setDefaultInputForSystem(Locale.get(Locale.LOCALE_en));

and for arabic

 Locale.setDefault(Locale.get(Locale.LOCALE_en));
Locale.setDefaultInputForSystem(Locale.get(Locale.LOCALE_en));

this will refelect in SMS and emails but in my application i have to change language manually.

please correct me if i missed somthing

 

Thanks in advance.

Regards,
Ajit Sharma
Highlighted
Developer
Posts: 98
Registered: ‎08-17-2010
My Device: BlackBerry 8300 simulator
My Carrier: Vodafone

Re: How To change input language for application.

One more thing guys, If my device preferred language is Arabic then how I can insert email address in English, since I created a CustomEditField for graphics purpose.

Regards,
Ajit Sharma