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.
12-29-2012 01:14 AM
Hi, I developed a BB application on which I create many custom buttons , on click of this it will show the respective pages
when I press the back button it will reach on the main screen where the buttons are drawn & it will show the focus on first button if I click on the fifth button then the focus is should be on fifth button when I come back on the main Screen where the buttons are drawn
If any code thanks for it
12-29-2012 06:35 AM
If you use the usual BlackBerry process of pushing the new screen and then when it is finished, that screen is popped exposing the original screen, this will happen automatically.
If you recreate the screen on return, you will have to remember which screen you last invoked and setFocus on the associated Button. Aside from the
there is nothing "magic" in this code.
I would try to us the push/pop mechanism if you can because that is how users expect the BlackBerry to work.
01-05-2013 06:52 AM
on my application i use so many custom buttons and when come back to main screen I read xml file and for come back i use the
01-05-2013 08:51 AM
Before we try to create a workaround to solve your specific problem, we should make sure that you are in fact doing it correctly.
The process is typically.
1) Create and push screen A
2) user clicks on something on Screen A, so application creates and pushes Screen B
At this point the user is seeing Screen B. But in fact Screen A is underneath Screen B and so hidden
3) User closes Screen B and it is popped of the display stack, now the user can see Screen A
At this point Screen A is in the same state as it was when the user clicked to get Screen B. The button pressed to go to Screen B remains focused as it was.
So why doesn't this process work for you?