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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
liechtir
Posts: 113
Registered: ‎09-27-2010

pushScreen does not work identically on different devices!

hi geeks,

 

I got a weird problem with my app running on different OS6 devices. The app runs as it should on the Torch, but has the following problem on the Bold and on the Style devices.

 

When I do UiApplication.pushScreen(myScreen), the screen does NOT show up on the device until I move the trackball a little bit. The exact same code works as normal on the Torch device.

 

How can I fix this or how can I gain more information on what to do? Logs and Debug do not show anything unusual, so it seems like a refresh event or what ever is not properly handled on the two new devices.

 

Thanks!

Please use plain text.
Developer
jprofitt
Posts: 604
Registered: ‎12-27-2010

Re: pushScreen does not work identically on different devices!

That is odd. Are you sure the screen is getting pushed at the point you think it is? Maybe try invalidate()ing the screen when you push it..

Please use plain text.
Trusted Contributor
liechtir
Posts: 113
Registered: ‎09-27-2010

Re: pushScreen does not work identically on different devices!

Yes I think so since the push is the last line and when debugging I see that after push no more code is executed, but screen is still not on the phone (I debug on the phone directly), but after touching the trackball it's there immediately.

 

Invalidate does not change anything at all, unfortunately... this is really strange!

Please use plain text.
Developer
arkadyz
Posts: 2,268
Registered: ‎07-08-2009
My Carrier: various

Re: pushScreen does not work identically on different devices!

Is it your custom screen? Does it have any custom elements with overridden layout/sublayout?

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
Please use plain text.
Trusted Contributor
liechtir
Posts: 113
Registered: ‎09-27-2010

Re: pushScreen does not work identically on different devices!

it is a custom screen with a tree table in it, some customized pictures and stuff. but since this works on torch why shoudlnt they work on others?

 

I did never overwrite layout or sublayout methods, also I did not overwrite paint or something like this.

Please use plain text.