Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
08-14-2012 10:44 AM
Hi Erik Oros,
Thank you very much for the links. The solution is working perfect.
But we have one problem.
If user changes the device locale from device options and if he/she didn't restart the phone, the application title is not changed.
Is there anyway we can overcome this problem?
08-14-2012 11:59 AM
That might be a little more difficult; I'm not aware of any such listener that could be implemented.
One step closer would be implementing the onForeground event to update the title when the application is activated:
That still doesn't give you an immediate update, but it does prevent the need for a restart (i.e. it updates each time the app is launched.)
Unless you're setting some internal timer to check the locale every ~5s or so and never actually quitting your application, then I don't think you'll be able to get an immediate change. The timer could potentially run only when the app is in the background to minimize performance impact in your app. I'm not sure of the overall impact this would have on the OS performance though if the call is being made regularly.
Perhaps someone in the community has a better idea though...
08-14-2012 12:02 PM - edited 08-14-2012 12:03 PM
Actually, just found these:
On the Java side, there are some global events that would be triggered on a change. There is already a community extension for global events:
So it seems the implementation should be fairly "simple".