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
colombus
Posts: 264
Registered: ‎06-04-2009

Re: Too many threads error

Thanks all for ur reply :manhappy:

Please use plain text.
New Contributor
sudhanshu_sri
Posts: 5
Registered: ‎04-02-2012
My Carrier: m

Re: Too many threads error

private void loadNewPage() {
UiApplication.getUiApplication().invokeLater(new Runnable() {

public void run() {
try {
UiApplication.getUiApplication().popScreen();
DemoScreen demoScreen = new DemoScreen();
// TODO Auto-generated method stub
UiApplication.getUiApplication().pushScreen(
new PratidinDemoScreen());

} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}


}
});

}

I uses this code to automatically call the push screen on DemoScreen but some time next screen is open but some time time that screen is not open . can u please tell me where i am wrong.

Please use plain text.