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
Trusted Contributor
govind23
Posts: 112
Registered: ‎05-20-2011
My Carrier: Developer

how to find that current device support Hindi or Gujarathi ?

Hi, I have a issue that i need to display one india language web page in my browserfield. 

It is showing perfect some devices only not all. So here i though that if i know programamtically current device is supporting Hindi or Gujarathi ,i can enable button othoerwise i will desiable.

 

So here can you please tell me anybody that how to find out current device is support language ?

 

Thank you 

Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: how to find that current device support Hindi or Gujarathi ?

maybe
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/i18n/Locale.html#getAvailableL...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Trusted Contributor
govind23
Posts: 112
Registered: ‎05-20-2011
My Carrier: Developer

Re: how to find that current device support Hindi or Gujarathi ?

Thank you simon for your support in that list i got following list  see screen shots list.png

 

But above list there is no hondi or gujarathis. Even though my device is sspporting both hindi and gujarathi

 

Please suggest me what i have to do

and which way i can find supported or not 

 

thank you

Please use plain text.
Administrator
MSohm
Posts: 14,073
Registered: ‎07-09-2008
My Carrier: Bell

Re: how to find that current device support Hindi or Gujarathi ?

Which BlackBerry Smartphone model and BlackBerry handheld software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.

 

I tried the code below on a BlackBerry running OS 7.1 that supported Hindi, and Hindi was shown.

 

 

Locale[] locales = Locale.getAvailableLocales();

StringBuffer sb = new StringBuffer();

for (int count = 0; count < locales.length; count++)
{
	sb.append(locales[count].getDisplayLanguage());
	sb.append("\n");
}

RichTextField rtf = new RichTextField(sb.toString(), RichTextField.FOCUSABLE);

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.