Storm/9500 trigger re-eval of layout in the subclass after screen rotation?

Hi people,

I'm working with JDE 4.7, with a 9500/9530 Simulator.  I try to get a subclassed field object to reassess its disposal after the rotation of the device.   I extended the DateField class in order to save a little space to the right of the date picker - it looks like this:

// Need to shorten up the extent of the DateField. so that we can place something
// on it's right hand side.

class ShortDateField extends DateField {

        private int __shortby;
        private int __height;

        public ShortDateField(String string, long date, long style, int shortheight, int shortlength) {
                super(string, date, style);
                __shortby = shortlength;
                __height = shortheight;
        }

        protected void layout(int width, int height) {

               int _fieldWidth = (int) Display.getWidth() - __shortby;

                setExtent(_fieldWidth, Math.max(getContentRect().height, __height));

        }
}

When the device is rotated in the Simulator, the field selector date "remains in place" until I drag my finger on it, then it moves and the POP in the right position on the screen.   How can I trigger the layout of re - evaluate before interacting with the screen?  I understand that I should be able to detect the rotation of the device through the substitution of sublayout in the display manager, but I don't know how to translate this by triggering the daily re of the development of the land.

(none of this is a problem on a 4.2 JDE/simulator where the screen is 'attached').

Thanks for any help.

-Scott

Thought of it - also had to call super.layout ().  Thank you for helping me to think about it.

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Smartphones Opera4 does not work on my Storm 9500

    I installed on my Storm 9500 OM4, but when opening it shows ' the Mini Oper application attempted to access a network connection to low altitude. Here afford that?' twice and then the application does not connect to the internet. The phone displays 'edge' only. I don't have a BIS in my country.

    Hello

    One thing you left was how you have responded to the message you received. Did say you Yes or no? Twice?

    In any case, it may be that your BB, which I assume that you have purchased 2nd hand, did not properly prepare for your use by the previous owner. Please see the bulletin:

    • KB05099 Steps to take before selling or after the purchase of a used BlackBerry smartphone

    In addition, it is possible that they had this BB associated with BES and did not remove the it policy... Review:

    • KB30076 How to check for an it on a BlackBerry smartphone policy

    Further still, your voice-level services work correctly? And you can find a WiFi network to see if Opera works that (as a test please)?

    Please let us know the results of your review of all the foregoing, accurately.

    Thank you!

  • BlackBerry Connect of Smartphones black berry storm 9500 to wifi?

    Hello world

    I juz received a blackberry storm 9500 of my sister, and I don't know how to connect it to wifi (I'm very new to this). I tried google and found different answers, ranging from "storm 9500 cannot connect to wifi", "I'm an and it can connect just fine. I can't find the wifi option in the 'manage' link, and there is either no browser on the homescreen icon.

    Can someone tell me how to connect to wifi (it can be connected)? My carrier provider is at & t btw.

    Any help much appreciated!

    Hello

    The original models of Storm (9500/9530) have no WiFi radio and therefore cannot use the WiFi. Models Storm2 (9520/9550) added, among other things, WiFi capability. Thus, with a 9500, you have no WiFi radio and so cannot use WiFi services.

    Good luck!

  • BlackBerry Storm 9500 Blackberry Smartphones - USB charge the question and problem of missed calls log

    Dear all,

    first of all Hello to everyone and that being said, I * fact * search both Google in general as well as this forum, in particular, prompt even to Vodafone was not any help, here I am, stuck with 2 problems with my BB Storm 9500 (.141 firmware, user of BES, Vodafone Germany) and it drives me crazy. Maybe someone here can help me.

    1. is it possible to load the storm via a USB cable connected to a computer * without * be disconnected from the network?

    Forcing me carry the charger around like a heavy phone (while previous models of BB) user authorized to charge by computer/USB without being offline.

    2. What can I do to see the missed calls in my call log?

    For the moment, I don't have the option to log in the missed calls message window, but to see them I have to unlock the storm via password I try * very * inconvenient (btw, the option to view missed calls directly in the call log was yet another function available with earlier models of BB).

    Any help or advice greatly appreciated!

    Concerning

    Jack

    Hi all

    It turns out that everything reported were caused by a screwed up political IT... that being resolved, everything works like a charm...

    THX once again all for your support and advice.

    Concerning

    Jack

  • BlackBerry Smartphones Newbie needs help [STORM 9500]

    Hi people.
    I recently got a new BB Storm 9500 my plan of operator and now I'm learning how to customize him completely.
    Right now I'm having two problems.
    I can't update the software. I'm in the course of the new BlackBerry Desktop Software downloaded from the official website of BlacBerry but everytime I try I get the same message. An unexpected failure. It always happens when the software tries to access the ROM of the device.
    I changed and re-changed almost all the options of Setup in the software but I can't find the solution.
    Someone had this problem?

    Another problem I have is the financial problem.
    Here at the Brazil data plan is quite expensive. Without Wi - Fi on the device, it is very difficult work with internet on the mobile phone.
    So, find a trick to add to BlackBerry to access wi - fi networks?
    Or have a way to connect to an internet connection PC hollow?

    Thanks for help.

    Without more details, it will be difficult to determine what is happening with your upgrade, but if you follow the directions in this link below, which has the latest newest 9500 OS out, you should be good.

    http://www.BlackBerryForums.com/General-9500-series-discussion-storm/203092-latest-OS-9500-4-7-0-237...

    These guidelines do not use Desktop Manager, you will see.

    The 9500 has no WiFi, and even with WiFi, you would need your operator BlackBerry data plan to enable all the BlackBerry service has this push email RIM, browser, etc..

  • So sad blackBerry smartphones not WiFi on Blackberry storm 9500

    So sad to know that there is no WiFi in my blackberry 9500 sotrm, it's so boring and UN acceptable than in the last storm model, there is no Wifi, it's so weird the world is moving on the internet and WLAN is so common, and everyone wants to stay connected to his network LAN or WAN , through its accesspoints and I can not find WIFI (Wireless LAN) in the blackberry storm 9500. I can't believe this

    If you are still in the first trial of 30 days, return the phone and one to two months of waiting for the Storm 2.  This should have WiFI.  At least it's a poe of world with GSM compared to most Verizon is CDMA one is not compatible with anything else in the world.

    See you soon

    Glenn

  • BlackBerry Smartphones Blackberry Storm 9500 'cannot create..." Reset"happened during the upgrade

    Hi all.

    I am new to the storm, but believe me, I've been everywhere on the internet trying to find the resolution appropriate for my case here. I found one or two instances where they did notice that they fixed, follow the signs, but can't seem to solve the problem. Here is what happened:

    Got my Storm 9500 Saturday, worked well and the dadny, a little lag, no big deal, but had a horrible battery life. (6 hours and dead) I read that update of your phone it improves by about 80%. So I bought a micro usb cable, BlackBerry. It is plugged in and did the update online Wednesday evening. Well, I do think that the update is complete. I was in there about 20 minutes, the process had begun, tehre was a

    computer screen and such demonstration on the storm, indicating the transfer. Update online TH rebooted the phone and a message popped up saying the affect"cannot run multiboot" and that's all. The phone immediately started to reeboot. It restarts now no stopping. The red LED flashes, black screen with the clock that indicates the start and then the screen turns white (where it is said normally Blackberry at startup) and technology quickly flashed in the center of the screen "Unable to create...". Reset' reset is written in a solid black rectangle. Then, the phone restarts nonstop like that until the battery dies.

    Now, what I tried to fix it... Everything under the Sun.

    Tried the jl-cmder to wipe... not connecting, even when I force him by prompt msdos. It gives me an error that 'impossible to connect to the device. Error openind"port of communication to that affect...

    Tried to update the software using the tool DM. of JVFM software loading, and then it tries to connect to the device several times and reports a fatal error... cannot continue.

    I then try to force the installation directly using the loader.exe. It connects, and instead of giving me the software options said 'Contact service provider etc.' I use the Add button to add the software manually, it seems as is compiled to get this ready for a transfer to the device, but then a message appears saying that there is no software for this device. Mind you, he has the whole device PIN: unknown report all the time. 1 of 10 restarts, the real axis will be displayed.

    Then. I can not get anything working. I used XP, I used Vista, I tried a program memory... There is obviously no software on the device, and the flash flash memory must be some how itself using the updated RIM online... Any help would be great... Hardly, I had the chance to discover my new camera, before becoming the equivalent of a brick. All I wanted to do was last updated the software so I could access the Blackberry Apps and stuff too...

    If anyone can help please do. I been to crackberry.com and tried all 101 Unbricking also advice. Nothing seems to work. But there is one report of someone who has exactly the same problem noted and claimed to have set himself without having to return the unit.

    Is it possible that I was cheated and gave a phone pre-production or something? the PIN and all that jazz has worked. I just removed the battery and compares it to tmobile my fiancé pearl of the brand. In the Pearl, she has the pin of the device, number etc as well as THIS seal etc on the same label. On the storm, there is just a sticker with the number etc. of pine. No stamp IT and other brands that are found on the T-mobile phone. He also says "property of research in motion'...» Assuming it's a prepdocution phone, RIM would be able to tell me and what the reason that none of the methods "unbricking" work. Could this be the reason why my update legit messed up the phone? Any help is appreciated.

  • Error on my Storm 9500 for blackBerry Smartphones

    Hi evryone,

    Hello
    I use Blackberry Storm 9500 with OS 4.7.

    For awhile, I had problems with my camera.

    I unsucceeded change my sound profile.

    I tried to click on "Set Ring Tones/alerts" every time, it didn't go anywhere.

    Same thing if I try to chacnge via main menu > options > ring tones/alerts.

    It seems like the "Set ring tones/alerts" funtion had been blocked.
    Everyone would like to share with the way to solve this problem?

    Thank you

    Hi JSanders,

    Thank you for the information.

    I tried all methods to correct the prior agreement of the problem to post my question on this forum.

    in any case, I solve the problem right once I confirmed my message, but I still have to make some additional adjustments to the device.

    It seems that the problem occure once I upgraded my OS to the latest version, even if it was recommended.

    I solve the problem of

    1 data backup using the BlackBerry Desktop Manager.

    2. unplug the unit of BB to the computer.

    3. go to the main Menu > Options > Security Options > General settings

    4. press the Menu button, then press on wipe Handheld.

    5. the device to initialize and wait for the device to restart and idle.

    6. connect the device to the computer and synchronize data.

    7. setting of parameters which is not covered by the backup process.

    8. now the machine works fine.

    Once again, I thank again, you & best regards.

  • BlackBerry Smartphones Help needed! BlackBerry storm 9500 memory problem!

    Hi all

    I use blackberry storm 9500 and I discovered this video file of great sample RIM - Babylon AD (about 17 MB) on the memory (128 mb) internal rather than the storage memory (1 GB). I really need to use memory to 17 MB on demand rather than to the video. I wanted to remove this video in order to free up more memory space, given the total internal memory is 128 MB, 17 MB, it's a lot.


    Is it possible that I can delete this file? I really don't need this.

    Thank you very much!

    Highlight, then open the Media icon > icon of videos > scroll the title of Diquizeiko_dieu and press the Menu key again > delete.

  • BlackBerry Storm 9500 Smartphone - phone don't read do not my SIM after having replaced the screen (vodafone PAYG).

    I recently replaced the screen on my Storm 9500, ensuring that the screen I bought was an exact match, paying special attention to the color of the flex cable and all the serial numbers. After turning on at the end of the replacement of the phone work as usual, all the menus and functions are in perfect working condition. The only problem I have is the phone is not reading the sim card there is now a message at the top of the screen that reads "insert sim card". The upper right corner of the screen indicates "SOS". I tried to give the SIM to a clean place and also tried another card sim vodafone with the same result. I thought that maybe the new screen needs to be reconfigured or something. Anyone have any ideas?

    Thank you very much

    Gary...

    Hello

    Tried the biggest pieces of paper and it worked a treat, thank you very much for your advice, it was very appreciated!

    Thank you very much

    Gary

  • What is happening with this new layout of the forum?

    Apple-wake up!  What happened to the layout of the traditional forum?  Is it broken?  People come to a forum looking for information and seek answers through the previous posts.  The new provision allows only one person to see more than a few hours of posts on a page (as perhaps the last 10?)!  What the devil?  Guess what?  Forums = information.  The new presentation of the forum = white space, and white space is not equal information.  If I wanted to meet someone post I don't know yet where to start because I couldn't find it!  In a mater of minutes at the station is restored to Page 2, never to be seen again.

    Basically, the new presentation of the forum *.  Why it was changed?

    Look at these two tips of using help in the management of the layout

    Stylish for Firefox, stylish for Chrome, elegant for Safarior elegant for Opera. Everything is free, by the way.

    I would start with "Minimal", which I've already committed to an elegant "style."

    1. Download Stylish
    2. Click here to install communities of Apple Support - Minimal - themes and Skins for Apple - userstyles.org IN Stylish
  • Is it possible to save a layout of the custom toolbar?

    Is it possible to save a layout of the custom toolbar?

    Print the help to the page layout, I can pretty well do memory...

    Once you have freshly generated the page layout you want

    1. Open your profile folder by typing about: support int the address bar (or help > troubleshooting information...)
    2. Click Open containing folder
    3. Use file > exit or "Firefox" button > Exit to exit Firefox (not the ' X' top-right that just closed the window)
    4. in your profile f older localstore.rdf select and copy ('Ctrl + C') then in short tights to make a copy, repeat the steps to create at least a copy, the original and the "localstore - Copy.rdf" and the "localstore - copy (2) RDF" will all be the same, about 4 KB to begin with. (not 18KO not 76 KB)
    5. Replace Firefox.

    Freshly generated means rename or delete the localstore.rdf original while Firefox is down, restart Firefox and customize your toolbars as you want.

    If you have a problem with a corrupt localstore.rdf put Firefox down and in your profile directory, delete or rename the localstore.rd then rename a copy of localstore.rdf

    Reference: http://kb.mozillazine.org/Corrupt_localstore.rdf see references to the backup copy, you must, of course, take periodic backups of all your personal data, and for Firefox, which includes your profile.

  • Installation and layout - by the end of 2015 iMac 27 "5K of RAM

    Ordered a new mac (end of 2015 iMac 27 "5K retina) with 8 GB of ram (2 x 4 GB).  I bought from another 2 x 4 GB of ram to do the 16 GB mac. What is the optimal layout for the 2 pieces of stock and 2 additional parts:

    1, New1, Stock 2, 2 new stock or

    Stock 1 Stock 2, 1 News 2 news

    Or it does not matter? Does it affect the double channel because they are 2 pairs?

    Thank you

    It's incredibly simple, install new RAM in the empty slots and that's all you need to do. Nothing to worry about at all!

  • Page layout is the gel

    Hello! I have a problem with my layout of dasylab. I'm collecting data of 8 channels with my USB 6009, sampling frequency is 50 Hz. I am see this data in a page layout and the problem is that the plot is freezing. The plot is given every 20 seconds about actualising. any ideas what's happening? (On the whole interval is 1 minute)

    It was no problem until I implemented some new features like a light signal of my digital input.

    Thank you and have a nice day.

    OK sry for the double post, but after think during the drafting of the last message I found the solution. In the configurator to MAX that I have found a 'Value to read' setting and cela me 1000 k with sampling frequency of 50 Hz I got data every 20 seconds.

    Good bye

  • trigger a loop to run during the impulse is received

    Hi I have an operation simple that I need to run however I can't understand how to perform.  I have a signal that goes up (or true, I can do either) for an iteration then returns low (or false).  I need this high signal to trigger the start of a loop that stays on until it receives a signal to turn it off after the execution of the function inside.  In a circuit point of view, I use a D-flip-flop, which takes in the impulse and the output remains high until it receives a signal to erase it, closing the loop.  I can use either a business structure or loop as my loop, but I just need to know if there is a way to run continuously one loop on receives a single pulse.  Thanks for your suggestions.

    Put the inner circle while loop in a housing structure.  Jump to the main loop the inner loop (inside a case of T/F) until the case selector goes to T, by running a case F is empty.  Once the trigger is going to T then the inner loop before full outer loop moves to another iteration.

Maybe you are looking for