09-28-2009 08:38 PM
I've found this forum to be quite helpful in getting me through various problems of BB development (extra thanks for the Storm GPS thread). Now, however, I have a question for which I've found no answer.
I have a midlet that I've ported to the storm. All forms are custom-made, and I manually show/hide the virtual keyboard with a virtualkeyboardcontrol. Normally, when I rotate the Storm, the sizeChanged() function is called, and everything works fine. However, if the keyboard is currently being shown when you rotate the device, the sizeChanged() function is not called until you hide the keyboard or rotate the device again. This is problematic because the screen will not display properly, and I cannot capture input from the keyboard correctly (since I interpret the keys based on orientation). How can I prevent the keyboard from blocking this call?
Thanks very much.
09-30-2009 01:59 PM - edited 09-30-2009 02:01 PM
Ah midlet! Missed that part. Sorry.
I suppose one could implement the accelerometer to detect orientation changes.
09-30-2009 02:01 PM
Heh, I was looking for a way to do it with MIDlets, but indeed, you can't access sublayout() from there (at least not that I know of). Any other ideas? Maybe some undocumented function that overrides sizeChanged()?
10-05-2009 01:44 PM
I've tried to reproduce this but found that the sizeChanged method is invoked when the virutal keyboard is present. What BlackBerry device software version are you testing on? You can find this under Options, About on the BlackBerry Smartphone.
Can you post some sample code that triggers this behaviour?