Display.setCurrent -- Command problem

i got a problem with my several canvas architecture, i think.
sometimes when i change the canvas with display.setCurrent(...) to the next screen, the screen is perfectly shown but the commands. The commands are still from the last screen. And the whole app is stopping.
I found out when I try to stop the VM and close the dialog with no that the commands then are the right ones. The whole thing only happens sometimes with no specific pattern on ly on my s700i from sony.
Has anybody an idea what I am doing wrong???
Thx and sorry for my bad english.

Use javax.microedition.lcdui.Form class. Form class allows both images and commands. Hope this helps.

Similar Messages

  • Help on K700i- OK/Send Command Problem...

    Hi guys,
    I need your help with SE K700i I developed a midlet that can send SMS.
    It works well with other phones but in SE K700i when i execute the SEND Command it doesn't do anything and sometimes when I used the BACK command and returned to SEND Command it will send/response...
    I tried a lot to solve this problem but I don't know if it's a bug or maybe the code is wrong...By the way this is some parts of the codes.
    static final Command sendMsgCommand = new Command("SEND",Command.OK,2);
    public void commandAction(Command c, Displayable d) {
              // TODO Auto-generated method stub
              if(c==exitCommand){
                   notifyDestroyed();
                   started=false;
              }else if(c==sendMsgCommand){
                   new Thread(this).start();
                    } else if(c==backCommand){
                  display.setCurrent(itemMenu);
              }Thanks in advance...
    Regards,
    Psyeu

    Yes i have tested it on real K700i and also on other devices like nokia 6101, P910i the midlet works fine with that devices...
    When I implemented alert for the OK command it seems no problem...and for SEND command to send message it works fine...
    I think the problem is the defaulted OK command after selecting contacts in the local phone book when implemented like SEND command it didn't respond and also the SEND command is also affected- it didn't response sometimes.

  • Is Display.setCurrent(...) synchronous?

    Does anyone know how to synchronously invoke Display.setCurrent(...)?
    I'm having trouble with code that changes current screen and then plays back animation on the new screen (in the same thread). The result is animation being played back (somewhere on the background), followed by appearance of the new screen (that contains animation). That is to say no animation is displayed, only the result of it (final frame).
    Here is the code that illustrates the problem:
    public void commandAction(Command c, Displayable d) {
    if(...) {
    Display.getDisplay(this).setCurrent(animatedForm);
    animatedForm.startAnimation();
    Maybe there is a work around?
    Any help is GREATLY appreciated!
    Huge thanks in advance,
    Tom

    Thanks.... If I got you right, the following should work:
    class Starter implements Runnable {
         private MyMIDlet mm;
         Starter(MyMIDlet mm) {
              this.mm = m;
         public void run() {
              mm.StartAnim();
    class MyMIDlet {
    public void StartAnim() {
    animatedForm.StartAnimation();
    public void commandAction(Command c, Displayable d) {
    if(...) {
    Display.getDisplay(this).setCurrent(animatedForm);
    new Thread(new Starter(this)).run();
    But to my greatest regret, it doesn't....

  • At User-command Problem

    Dear Friends
    i have big problem
    below i saved my program code.
    SET PF-STATUS 'SD012_MENU2'. its button also coming to the display screen, my problem is when i click on the "New Remarks" button (FUNC01) i want to call another screen
    but i unable to trigger the any kind of events i done in the screen
    i used AT USER-COMMAND  also but problem still there
    please look this and let me know how can i solve this problem.
    1. Selection Screen (Customer Menu 01) when click on the button ALV list Displaying
    2. In ALV list (Customer Menu 02)  when click on the button list Displaying (list with write statment)
    3. In list (Customer menu 03) when click on the button i want to call screen but in this part any button not working (only display)
    Thanks in advance
    Hope,
      you can understand about my problem. 
    *&      Form  CREATE_REMARKS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM CREATE_REMARKS .
    *  BREAK ITNR.
      LOOP AT IT_ALLOCATION2 INTO WA_ALLOCATION2.
        IF WA_ALLOCATION2-FLAG = 'X' AND WA_ALLOCATION2-DOCTP = 'LP'.
          SELECT  VBELN POSNR SEQNO CNGDATE CNGTIME CNGUSER REMAK
            INTO  CORRESPONDING FIELDS OF TABLE IT_ZSD012_002
            FROM  ZSD012_002
            WHERE VBELN EQ WA_ALLOCATION2-EBELN
            AND   POSNR EQ WA_ALLOCATION2-POSNR.
          IF SY-SUBRC = 0.
            SET PF-STATUS 'SD012_MENU2'.
            PERFORM WRITE_REMARKS.
            CALL SCREEN '1012' STARTING AT 5 5 .
          ELSE.
            CALL SCREEN 1012 STARTING AT 5 5 .
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " CREATE_REMARKS

    Hi,
    Try this
    Create a PF Status,say you have created 'SD012_MENU2'.
    In this PF STATUS create one button.
    Now while using call function 
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = sy-repid
         i_callback_pf_status_set          = 'SD012_MENU2'
         i_callback_user_command           = 'C_USER_COMMAND'
         is_layout                         = er_layout
         it_fieldcat                       = t_fieldcat
        TABLES
          t_outtab                          = t_final
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    FORM SD012_MENU2 USING p_extab TYPE slis_t_extab.
      SET PF-STATUS 'SD012_MENU2'.
    ENDFORM. " STATUS
    FORM c_user_command  USING r_ucomm LIKE sy-ucomm
                                                    rs_selfield TYPE slis_selfield.
      IF  sy-ucomm EQ 'POST'.  here post is button name
      PERFORM something.     here you want to go to some other screen.
      ENDIF.
    ENDFORM.

  • Using Display,setCurrent

    I am writing an application and I need it to go from a canvas display to a form display (the form components are located in a different class).
    So my code looks something like this:
    display.setCurrent(showCanvas);
    if(flag =1)
    display.setCurrent(showFrom);
    however this does not work I just need to know how to change the display.
    any information will help
    Jmstren

    Good Morning Jmstren ,
    First of all, you try this as i am explaining bellow..
    class YourFormDisp extends MIDlet {
    Display display = null
    Form form = null;
    // define and write ur code here..
    take another class which extends canvas
    class YourCanvasDis extends Canvas {
    // take the object of the YourFormDisp class
    YourFormDisp yourform = new YourFormDisp();
    // write the constructor asnd pass the YourFormDisp object as a parameter in to that
    // constructor
    public YourCanvasDisp(YourFormDisp urFor) {
    this.yourform = urFor;
    // do not take display abject at here
    // use the display object of the YourFormDisp class
    yourform.display.setCurrent(yourform.form);
    // write app the code
    I think from this u can understand the solution of ur peoblem better..
    If u do not got the solutin afterword ...
    Please send me ur code.....
    I will try to solv ur problem...
    Bye....

  • Using a IP191 monitor, have random horizontal streaks on display - have no problem with other browsers; also no problem with FF on other family PC's

    Using a IP191 monitor, have random horizontal streaks on display - have no problem with other browsers; also no problem with FF on other family PC's.
    These "streaks" appear to be area of too high frequency scanning; they can be cleared by scrolling up and/or down.

    hello, maybe that's an issue with hardware acceleration - please try [[Upgrade your graphics drivers to use hardware acceleration and WebGL|updating your graphics driver]], or in case this doesn't solve the issue or there is no new version available at the moment, disable hardware acceleration in the firefox ''menu [[Image:New Fx Menu]] > options > advanced > general''.

  • Display and camera problems... related?

    Dear Folks of Apple Support Communities.
    Recently i have started to experience a rather disturbing issues with my screen, and that made me remember of the problems with the camera.
    I have MBP retina early 2013 and. well, it is known fact that screens on this particular model are not exactly brilliant... The same could be said about the camera, which has simply tuns of blue noise! But the screen was acting pretty Ok for some time now, there always was a minor image retention, but as i had nowhere to fix this, i had to live with it. But recently the screen started to turn GREEN! Yes that emerald shade, almost like cartoon green!!! That happened to it once before, but was not so intense, well at least i was able to see something... But the other day i was completely blown away, when i turned on my mac and i sew bright-bright green screen with absolutely no picture... Why does this happen to a £2000 product i have no clue! Now it has an uneven colour (the bottom corners are blueish, and the sides are somewhat darker).
    Is there some way to resolve it? Or should i ask for the screen replacement (and the camera with it as well)?
    I will be in Glasgow starting from september, so i will have an Apple store near by... i just don't want this to happen anymore, it is really scary.
    Many thanks . Anna.

    Badlydrawnboy wrote:
    I have a new MBP that is less than 3 months old.  I've been having various display and power problems pretty much since I got it.
    You should not be having those type of problems on a brand new Mac.  Did you call AppleCare about this?  If not why not?  
    You have 90 days of free phone tech support from Apple on top of your one year warranty.  Strongly suggest that you use it before you lose it!  You already missed your 14 day from the date of purchase to return your MBP for a refund or an exchange.

  • I'm trying to clean up my library before I sync it with my new ipod touch.  Apparently there is a DISPLAY DUPLICATES command in the file menu...can't find it?

    Looking for the DISPLAY DUPLICATES command in the File Menu to delete songs before I sync with my new device????

    You might need to bring up the menu bar first.
    If you're using version 11.0.1.12, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Now you should be able to find the duplicates thing in the View Menu.
    (If you're still using iTunes version 11.0.0.163, you'd need to update to 11.0.1.12 to get the Display duplicates control.)
    EDIT: Sorry, in the initial version of this reply, I said the Show Duplicate items was in the File Menu. It's in the View Menu in version 11.0.1.12.

  • SQL Command problem in Application Express 3.2.0.00.27

    To Oracle Application Express Development Team,
    Yesterday I installed Oracle Application Express 3.2.0.00.27.
    While doing my r&d, I came across one problem in SQL Command.
    For example I wanted to run sql "select * from tab"
    When I checked "Autocommit" checkbox it worked fine.
    But when I unchecked the "Autocommit" checkbox it gave me following error:
    ORA-01003: no statement parsed
    Please check post
    http://www.oraclebrains.com/2009/03/sql-command-problem-in-application-express-3200027/ for more details.
    Cheers

    I can't find the log file (a good indication that something went wrong)
    Here's the transcript of the session...
    SQL> startup upgrade
    ORACLE instance started.
    Total System Global Area 599785472 bytes
    Fixed Size 1288820 bytes
    Variable Size 264242572 bytes
    Database Buffers 331350016 bytes
    Redo Buffers 2904064 bytes
    Database mounted.
    Database opened.
    SQL> @apxpatch.sql
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    Wrote file apxset.sql
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    SQL>
    SQL> @apxldimg.sql
    PL/SQL procedure successfully completed.
    Enter value for 1: C:\Documents and Settings\jtench\Desktop\My Downloads\Oracle\apex_3.2.1
    old 1: create directory APEX_IMAGES as '&1/apex/images'
    new 1: create directory APEX_IMAGES as 'C:\Documents and Settings\jtench\Desktop\My Downloads\Oracle\apex_3.2.1/apex/images'
    Directory created.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    Commit complete.
    timing for: Load Images
    Elapsed: 00:03:30.03
    Directory dropped.
    SQL>

  • Macbookpro display have a problem when start

    some times, when i turn on the macbook pro, the display have a problem like this photos.
    the problem have when the battery is low, still have 1 led check, but when the battery is fully charge, it become normal again. Please help me, do my macbookpro have a problem with hardware ?
    Message was edited by: nguyennhatquang

    Not that there are any real solutions but there is a thread dedicated to this exact problem:
    http://discussions.apple.com/thread.jspa?threadID=1627678&tstart=0
    It seems as though it is a hardware issue. You may try bringing the MacBook Pro to an Apple Store (depending on where you are.) Be sure to bring the picture that you have here.

  • MacPro Early 2008 Display/Video Card Problem

    *Hello, I have a Dual Quad-Core 2.8Ghz MacPro (Early 2008) with the stock ATI Radeon HD 2600 XT 256MB Video Card. I believe I am having the exact same symptoms listed on the topic "Mac Pro 2008 Video Card Problem".*
    *MacPro has been working fine. Until one day, I power it on and the display stays black. There is nothing you can do besides holding down the power button and rebooting the computer. I have tried to do this many times and the display will not come up. I have also tried resetting the VRAM and PRAM settings - still did not work. I have had my MacPro for about one year and a half. It is in very good condition (no damage/no liquid/no overheating). From time to time, you power on the computer and the display works! It is very random. I am scared to turn off the computer or put it to sleep as this can also trigger the problem.*
    *I did not get the extended AppleCare (the MacPro itself already cost me about $3400!) I tested the Cinema Display and it is fine, therefore the problem is not coming from the display.*
    *I went to the Apple Store and they kept my MacPro for one night. Called me the next day telling me it was going to cost me approximately $800 in order to fix this problem. They claimed that either my Bluetooth module or my Main Logic Board was causing the display not to show. I am out of warranty, and I think it is very expensive. I am doing my research online in order to try and find a cheaper solution. After reading the discussions and checking out some other websites. I have a few questions:*
    *If I buy a NEW* ATI Radeon HD 2600 and install it in my MacPro - will it fix my problem?*
    *OR - I also heard about the ATI Radeon HD 4870 - Is that graphic card compatible with my MacPro - will that resolve the problem?*
    *Do you think I should give it a shot? Are there any other things I can try?*
    *I am thinking that I should try to replace the graphic card first and see if that is causing the problem instead of replacing the Main Logic Board right away (which will cost me over $500)*
    *Please let me know of any thoughts that come in mind. I really need some support. I am a college student studying Audio Engineering and I use my MacPro everyday on Pro Tools and Logic. This machine is my life.*
    *Thank You,*
    *Kevin C.*

    Glad you solved your problem Gaunja. Here's an update on my own.
    When last heard from I had diagnosed the failure of my displays to boot up to graphics card problem in my early 2008 Mac Pro with my stock ATI Radeon HD 2600 by swapping out the same card from my son's Mac Pro and seeing the displays boot up fine. Before heading off to the Apple store for a new card I reinstalled my suspect video card just to see what would happen. The displays booted up fine. Now, two weeks later, again no video display--black screens--no signal from the graphics card. I rebooted the computer several times to no avail and was, again, about to head off to the Apple store for a new card. This time "just to see what would happen" I moved the graphics card to another slot and bingo, the displays are up. What can be determined from my experience to date?
    1. The graphics card is flirting with death. Like a patient unwilling to die, through a mysterious force, it rallies to live another day.
    2. The slot the card came installed in is unreliable--it's dirty, there's a spec of dust in there, a contact has degraded after two years, or some other slot related fault. Note that, until the card failed for the first time, it had never been removed from it's slot, the computer was treated gently, and it operated in a very clean environment.
    If anyone has another theory about what may be happening here please feel free. I fully expect the displays to go dark again at some point as my suspicions are that it's the card itself that is the problem. The two replacement cards I'm considering are the ATI Radeon HD 4870 or the Nividia Geo Force GT120. I've read that both work with the early Mac Pros. Some complain that the ATI card is noisy and expensive. Based of Gaunja's post and others I think the Nividia card will suit my needs, be quieter, and cost less. But, for now, my stock ATI Radeon 2600 lives!
    Just one man's experience with the "Mac Pro display, black screen" problem.

  • My firefox page is not connecting to network and also its not displaying the troubleshoot problems option?

    my firefox page is not connecting to network and also its not displaying the troubleshoot problem option?

    At the very least, I recommend you restart your router, (your internet box).
    More detail on your problem is needed - are you in a submarine? On the moon? On a tropical island?
    You can help yourself by providing as much info as you can about your present situation - what kind of router do you have? Have you moved it? DId you update it?  Did you do anything to change your setup, and if you did, what?

  • MBP 13'' Display and Screen Problems.

    HELP!
    I've posted about this problem before, and I've read all the threads, but my problem is not resolved despite sending my new MBP back to Apple to sort it out. They fitted a new logic board, but it has made no difference. My machine is still under warranty.
    The MBP continues to totally freeze when connected to an external projector via the mini port using VGA. The computer screen goes a funny blue-ish color with everything out of focus and the pointer freezes, too. It has also started to make a funny buzzing noise, too. I have to restart the entire machine, which is not very convenient right in the middle of using it. It is an intermittent problem. Sometimes, the machine is working OK for a few days, other days it crashes several times.
    I have read that this may be something to do with 32 bit versus 64 bit Kernel start up. Some suggest resetting the PRAM and system manager, but I'm still struggling. Does anyone know what the real issue is? A solution would be great.
    By the way, I am resorting to using my old MBP (Nov 2006 15" model) and it works perfectly still, no matter what projector it is connected to. It is frustrating the **** out of me as I bought the 13'' to have more power and RAM and it is easier to lug about the place, but I can't use it as I need to connect it up to various projectors at work.
    Any expert out there? I'd really appreciate a solution to this problem. Is it only confined to the MBP 13", or has the 15" got similar problems? From the threads, I can tell this has been a big issue for people using their computers in conjunction with a projector.

    Badlydrawnboy wrote:
    I have a new MBP that is less than 3 months old.  I've been having various display and power problems pretty much since I got it.
    You should not be having those type of problems on a brand new Mac.  Did you call AppleCare about this?  If not why not?  
    You have 90 days of free phone tech support from Apple on top of your one year warranty.  Strongly suggest that you use it before you lose it!  You already missed your 14 day from the date of purchase to return your MBP for a refund or an exchange.

  • Why is a css 'display:inline;' command not working in one part of the page when it does in another?

    I am trying to set my navigation links to be in a line rather than a column after setting them up as an Unordered List. I have already done it for the social network icons but the same css command just won't apply itself for the navigation. Any help would be appreciated.
    Here is a copy of the page followed by the relevent protion of the css file, the problem occurs with the styles.css applying to the 'topnav' section:
    <!DOCTYPE HTML>
    <html>
    <head>
        <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen">
        <link href="css/print.css" rel="stylesheet" type="text/css" media="print">
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta http-equiv="content-type" content="cache" />
        <meta name="robots" content="INDEX, FOLLOW" />
        <meta name="keywords" content="Enter Keywords" />
        <meta name="description" content="Description Here" />
        <title>Hittite Education by Weirdbeardink</title>
    </head>
    <body>
    <div id="outer">
        <div id="wrapper">
            <div id="logo">
                <ul>
                    <li><img src="images/Logo-2.jpg" /></li>
               </ul>
            </div>
            <div id="social-media-icons">
                <ul>
                    <li><a href="http:/www.facebook.com"><img src="images/icons/facebook-icon.png" /></a></li>
                    <li><a href="http:/www.twitter.com"><img src="images/icons/twitter-icon.png" /></a></li>
                    <li><a href="#"><img src="images/icons/rss-icon.png" /></a></li>
                </ul>
            </div>
            <div id="topnav">
                <ul>
                    <li><p><a href="index.html">HOME</a></p></li>
                    <li><p><a href="about.html">ABOUT</a></p></li>
                    <li><p><a href="contact.html">CONTACT</a></p></li>
                </ul>
             </div>
            <div id="topstripe">
                <ul>
                    <li><img src="images/stripe.jpg" /></li>
                </ul>
            <div id="picture">
                <ul>
                    <li><img src="images/coverpic500px.jpg" /></li>
                </ul>
            </div>
            <div id="content">
                <ul>
                    <li><h1>Introduction</h1></li>
                    <li><p>This is a unique project undertaken to teach important social topics using sport as the vehicle. Sporting and comedy clips are interspersed with filmed interviews with people like Paul Collingwood, Gary Lineker, Ed Leigh, Faye White and many others. They home in on topics such as teamwork, respect, rules, & money, and they use the pupils' experiences of sport to teach really important lessons about life.</p></li>
                 </ul>
            </div>
            <div id="bottomstripe">
                <ul>
                    <li><img src="images/stripeflip.jpg" /></li>
                </ul>
            </div>
            <div id="footer">
                <ul>
                    <li><p>Copyrite 2011 Hittite Education  |  All rites reserved</p></li>
                </ul>
            </div>
         </div>
    </div>   
    </body>
    </html>
    Here is the portion of the styles.css that works (#social-media-icons) and the portion that doesn't (#topnav):
    #social-media-icons         { float:right; }
    #social-media-icons ul li   { display:inline; }
    #social-media-icons ul      { margin-top:100px; }
    #topnav                { clear:both; }
    #topnav                { width:700px; margin: 0 auto; background-color:#FFF; }
    #topnav ul             { padding:10px; }
    #topnav ul li          { display:inline; }     <!-- THIS IS THE LINE THAT WONT WORK -->
    #topnav ul li a        { padding:0 15px;}
    #topnav    a:link            {color:#000; }
    #topnav    a:visited        {color:#000; }
    #topnav    a:active        {color:#000; }
    #topnav    a:focus            {color:#666; }
    #topnav    a:hover            {color:#F38E00; }

    No need to answer this one as I have had a relpy on another forum. I had <p> tags in the unordered list. Once I took them out it all worked fine

  • This page cannot be displayed - web connectivity problem

    Just purchased an HP laptop with Windows 8 and IE 10.
    I am connecting to my wireless connection because I can login and use Yahoo messenger, but cannot access any websites.  When open IE, get the error:  This page cannot be displayed. 
    There is an option to Fix Connection Issues - tried this and get the following results:
    Problem with wireless adaptor or access point  (not fixed)
    Your computer appears to be correctly configured, but the device or resource (www.msn.com) is not responding.
    Searched Google and there was a suggestion to flush the dns using command:  ipconfig \flushdns.  Did this, rebooted and then the home website does come up (www.msn.com).  However, if I click any link on the site, I then get back to the same 'This page cannot be displayed' message.
    Anyone else having this same issue or have any suggestions for resolving? 
    Thanks

    I'm sorry your new laptop isn't working! I think I have some solutions for you and hopefully resolve your issue quickly.
    (Make sure your time and date are correct!)
    First, reset your router. This is done by unplugging the power from your router and modem. Once ALL the lights on both are out, wait a few seconds. Plug the modem back in, wait for the lights to come on, then the router. Give it time to access the device and assign IP addresses (this takes up to 4 minutes with some models). Once completed, try to reconnect using your HP laptop.
    If that does not work, manually reset your IP address by using the command prompt (search for it using the search option on the right menu),
    ipconfig /release
    ipconfig /renew
    This should flush the IP address. You have already reset the DNS, and you may do so again just to clear everything.
    If that still does not work, hook the Ethernet cable directly into your laptop and see if it can get online. If it does, then it is a wireless connection issue and you should either return it OR have Geek Squad take a look. If it doesn't work, then either your router will NOT assign an IP address properly due to the computer having the same IP or Name as another computer on your network, or the computer could have a winsoc issue. In this case, you would have to restore the computer or
    go to :
    microsoft.com/fixit
    And use there fix. Download it on another computer, burn to DVD/CD or drop it to a flash drive, then use it on the computer giving you the issue.
    Let me know if any of these options work!
    - Disclaimer: While Agent Bender is currently employed at GeekSquad, ALL posts made by Agent Bender are her personal opinions, and do not reflect the opinions or policies of Best Buy or GeekSquad. -

Maybe you are looking for