GetKeyStates problem in WTK2.5

Hi,
I am developing a card game for my Final Year Project. It's already in the final stage but I got a strange problem recently after I installed some 'new' development software. I am using Eclipse 3.2.1, WTK 2.5, Carbide 1.5, and S60 Emulator 3rd edition.
My game can run perfectly in the S60 emulator but problems occur when testing in the WTK 2.5. The problems are not occur in the game but a simple menu, when the user press up, the choice go up, press down then go down, that's very simple. The class is extends GameCanvas and implements Runnable and CommandListener. There is a method "chkInput()" inside the game loop (run()) for checking the key states.
     private void chkInput() {
          int keyStates = getKeyStates();
          if ((keyStates & UP_PRESSED) != 0)
               selectMenu(-1);
          if ((keyStates & DOWN_PRESSED) != 0)
               selectMenu(1);
          if ((keyStates & FIRE_PRESSED) != 0)
               if (!players[currSelection].isEmpty())
                    chkPlayerInfo();               
     }The system will display the binary value of ketStates when I am debugging it. When I was testing it in S60 Emulator, the keyStates are very normal such that it was "10" when the user pressed up, "1000000" when the user pressed down and "100000000" when the user pressed fire.
However, when I was testing in WTK2.5, the keyStates became weird such that it was "100000010" when I pressed up at the first time, after that, the game loop is running and the system is keep displaying that the keyStates is "100000000" which is the fire button!!!?? But actually I haven't touch anything! The keyStates became "100000010" even I pressed up.
I really got crazy and still cannot fix it for a day! Please help........

I am also facing the same problem in WTK 2.5
The getKeyStates() returns 256 instead of 0 when no key is being pressed. What could be the problem? It works normally in WTK 2.2 and Sony Ericsson Tool Kits. Is this a bug in WTK 2.5?

Similar Messages

  • Problem with WTK2.5.1 in Solaris 10

    Greetings,
    I've installed Wireless ToolKit 2.5.1 in Solaris 10 OS and after successful installation when I run the application from path /WTK2.5.1/bin/ktoolbar it gives me error like:
    ktoolbar : MMAPI_GM_SOUNDBANK=/WTK2.5.1/lib/soundman.dls is not a valid identifier.
    I've checked my audio device and multimedia supports it is working perfectly and I am stuck in between.
    I would like to clear that I am not very proficient in Solaris, so please guide me so, that I can successfully run ktoolbar from solaris.
    Thank you all

    parag.rughani
    Perhaps you might have a better chance of getting a meaningful response in the New to Solaris forum
    http://forum.java.sun.com/forum.jspa?forumID=863
    or even the General Solaris 10 Discussion forum
    http://forum.java.sun.com/forum.jspa?forumID=844
    If you decide to post there, please provide a reference and link to this post so that you are not accused of cross-posting.
    All of this may already be known to you -- providing my analysis in the hope that it may throw some small light on the problem.
    MMAPI_GM_SOUNDBANK=/WTK2.5.1/lib/soundman.dlsMMAPI -- MultiMedia API for j2me
    GM -- General Midi
    SOUNDBANK -- self-explanatory :-)
    soundman.dls -- *.dls files are Drum Kits for MIDI audio. They contain audio clips for the various drum sounds implemented through the MIDI interface, in a specified format.
    In Windows, if a custom dls file cannot be loaded, the system reverts to the default one provided by M$. Whether any error is notified or not depends on the circumstances.
    If Solaris has any similarities on this, you may be able to configure the soundman.dls from whatever is the equivalent of Windows Control Panel.
    I know that's not very helpful.
    Wish you luck, Darryl

  • WTK2.5 beta & S80 DP2.0 MIDP SDK problem

    Hi all,
    I am a newbie into programming for mobile devices and I need a little help in getting a the Network Demo running on the s80 emulator that nokia distribute. I have installed jdk1.5.0_07, wtk2.5 & 2.1, s80 dp2.0 midp sdk. I am able to run the demo using the Sun emulators i.e DefaultColorPhone so i can compile and run the project just fine in wtk2.5. I included the s80 sdk root folder into the wtk2.5/wtklib/devices/ directory and now can build the same project just fine, this is ofcourse after I changed the setting from CLDC1.0 to CLDC1.1 was complaining about floating point errors. I get a warning when trying to run the midlet "WARNING: Attribute value for MicroEdition-Conifugration defined in JAR manifest is not supported." then the midlet chooser selector is launched and so is the emulator. I am able to choose between the server/client radio button but when i click the select button nothing happens?
    I have runs this demo with the standard emulator the midlet is able to connect to a echo server that is running on my server and send it a message. Does anyone have any suggestions in getting this work on the s80 emulator??
    I look forward to your replies

    Update:
    Please note that I am still testing the Network Demo shipped out with the WTK2.5 SDK using a socket connection.
    I have now also added the Nokia Prototype 4.0 SDK to the WTK2.5\wtklib\devices directory and have found that some of the emulators work while others dont. Whats weird is that the s80 _640x200 MIDP emulator mostly works and actually displays that "Start" CBA where as the S80_DP2.0 MIDP emulator only shows the "SELECT" "EXIT" so this was fine to test but when I uploaded the JAR to the real phone it behaved like the S80_DP2.0 MIDP emulator which leads me to believe that there is something wrong with the code.
    Is there anyone that can help me resolve this issue, surely there are developers out there that have come across this problem.

  • Problem with video recording in wtk2.2

    Hi,
    I was trying to create a small utility for video recording using MMAPI.but the problem is that its is not working in the wtk2.2 emulator even after i include the mmapi package to the environment.
    Video player created by the following way is not working
    videoPlayer = Manager.createPlayer("capture://video");//
    but Audio recording is working properly
    audioPlayer = Manager.createPlayer("capture://audio");//
    any help?
    Mandrake

    At last video recording using the combination of JSR 135+JSR 75 worked fine for me in Nokia N70 as well as Siemens S75!!!!!
    Cheers
    Prashanth

  • WTK2.5 (beta) problems with emulator interaction

    Hi,
    My problem is like this; I have a number of items in a form, and when I'm pressing the arrows on the emulator to switch between the different Items, one click is emulated as two clicks.
    So if I have two elements, Start and Stop, only one of them will ever be able to be selected (the one that was selected by default)..
    Has anyone experienced anything like this? If so, did you find a solution to it?
    The application works fine in WTK2.2 btw.
    Thanks in advance!
    -Frank

    Thanks for the tip, Mihai. I tried a few examples and they all seemed to work fine. After going through the source I was given, I traced the problem back to a method being called twice, with result of "simulating" an extra keypress!
    But after fixing that method, it seems like it's working.
    Thanks for all your help!
    Problem solved, case closed! (for now anyway :-) )

  • WTK2.2 Installation Problem on Suse 9.2

    Hi,
    I can't seem to install WTK2.2 on Suse 9.2 pro. I am using the JDK packaged with SUSE 9.2. Below is the version info:
    java version "1.4.2_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
    When I execute the WTK2.2 installation file, it terminates when it tries to extract the binary files from the installation file. Below is the error message:
    Extracting the installation files...
    Error! CRCs do not match! Got e61aebb2, expected f53ddfb0
    Failed to extract files. Installation will stop now.
    Please try to install J2ME Wireless Toolkit again, or contact [email protected] for assistance.
    Any pointer will be greatly appreciated.
    Thanks.

    Thanks. That works fine.
    I've found that /etc/alternatives/java_sdk
    and also works and is a bit more generic.
    I installed in /opt/WTK2.2 as root, and found the following was necessary to allow
    end users to run the toolkit. (NOTE: I cannot even BEGIN to tell you if this is anything
    but functional. It is most likely a security NIGHTMARE waiting to happen. You have
    been warned!)
    chmod o+w WTK2.2/apps
    chmod o+w WTK2.2/wtklib
    chmod o+w WTK2.2/sessions
    cd WTK2.2/bin
    chmod o+x defaultdevice emulator ktoolbar libjmcustommpx.so libzayit.so \
            mekeytool prefs preverify preverify1.0 preverify1.1 runmidlet utils \
            wscompile zayit

  • Wtk2.2 Lay out problem

    Hi
    I want to display items on a Form in a tablar manner
    so i have set the layout of the forms like if we have
    3 items on each row
    Layout of first is layout left
    Layout of second is layout center
    Layout of third is layout right
    but when i run this on wtk2.2 it shows stair case implementation
    like one item on each row but it works fine on wtk2.1
    Any one know what is the prob???
    or any other ways to show items in tabular manner
    thanx

    Hi
    I want to display items on a Form in a tablar manner
    so i have set the layout of the forms like if we have
    3 items on each row
    Layout of first is layout left
    Layout of second is layout center
    Layout of third is layout right
    but when i run this on wtk2.2 it shows stair case implementation
    like one item on each row but it works fine on wtk2.1
    Any one know what is the prob???
    or any other ways to show items in tabular manner
    thanx

  • A problem with Threads and MMapi

    I am tring to execute a class based on Game canvas.
    The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
    The MIDI tone "Stammers".
    How to over come the problem?
    Thanks in advance
    Kobi
    See Code example below:
    import java.io.IOException;
    import java.io.InputStream;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    public class MainScreenCanvas extends GameCanvas implements Runnable {
         private MainMIDlet parent;
         private boolean mTrucking = false;
         Image imgBackgound = null;
         int imgBackgoundX = 0, imgBackgoundY = 0;
         Player player;
         public MainScreenCanvas(MainMIDlet parent)
              super(true);
              this.parent = parent;
              try
                   imgBackgound = Image.createImage("/images/area03_bkg0.png");
                   imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
                   imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
              catch(Exception e)
                   System.out.println(e.getMessage());
          * starts thread
         public void start()
              mTrucking = true;
              Thread t = new Thread(this);
              t.start();
          * stops thread
         public void stop()
              mTrucking = false;
         public void play()
              try
                   InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
                   player = Manager.createPlayer(is, "audio/midi");
                   player.setLoopCount(-1);
                   player.prefetch();
                   player.start();
              catch(Exception e)
                   System.out.println(e.getMessage());
         public void run()
              Graphics g = getGraphics();
              play();
              while (true)
                   tick();
                   input();
                   render(g);
          * responsible for object movements
         private void tick()
          * response to key input
         private void input()
              int keyStates = getKeyStates();
              if ((keyStates & LEFT_PRESSED) != 0)
                   imgBackgoundX++;
                   if (imgBackgoundX > 0)
                        imgBackgoundX = 0;
              if ((keyStates & RIGHT_PRESSED) != 0)
                   imgBackgoundX--;
                   if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
                        imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
          * Responsible for the drawing
          * @param g
         private void render(Graphics g)
              g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
              this.flushGraphics();
    }

    You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
    However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
    You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
    Regds,
    SD
    N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
    Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM

  • Problem GameCanvas for Nokia 6260!!!!

    Hi,
    I tested some applications that extends the GameCanvas, when I tested on simulator J2ME Wireless Toolkit it hasn't problem when I download the application on phone (Nokia 6260) the program show screen and it work ok but when i try go out the application send the two errors
    "Buffer closed java.lang.RunTimeException
    0 java.lang.NullPointerException"
    It's possible that phone not support the class javax.microedition.lcdui.game.GameCanvas? or what's the problem?
    Help me please,
    Thanks
    P.S Below put the code, maybe this way is easer.
    // A simple example of a game canvas that displays
    // a scrolling star field. The UP and DOWN keys
    // speed up or slow down the rate of scrolling.
    public class StarField extends GameCanvas implements Runnable{
         private static final int SLEEP_INCREMENT = 10;
         private static final int SLEEP_INITIAL = 150;
         private static final int SLEEP_MAX = 300;
         private Graphics graphics;
         private Random random;
         private int sleepTime = SLEEP_INITIAL;
         private volatile Thread thread;
         private Command salir = null;
         public StarField(){
              super( true );
              graphics = getGraphics();
              graphics.setColor( 0, 0, 0 );
              graphics.fillRect( 0, 0, getWidth(), getHeight() );
         // When the game canvas is hidden, stop the thread.
         protected void hideNotify(){
              thread = null;
         // The game loop.
         public void run(){
              int w = getWidth();
              int h = getHeight() - 1;
              while( thread == Thread.currentThread() ){
                   // Increment or decrement the scrolling interval
                   // based on key presses
                   int state = getKeyStates();
                   if( ( state & DOWN_PRESSED ) != 0 ){
                        sleepTime += SLEEP_INCREMENT;
                        if( sleepTime > SLEEP_MAX )
                             sleepTime = SLEEP_MAX;
                   } else if( ( state & UP_PRESSED ) != 0 ){
                        sleepTime -= SLEEP_INCREMENT;
                        if( sleepTime < 0 ) sleepTime = 0;
                   // Repaint the screen by first scrolling the
                   // existing starfield down one and painting in
                   // new stars...
                   graphics.copyArea( 0, 0, w, h, 0, 1,
                   Graphics.TOP | Graphics.LEFT );
                   graphics.setColor( 0, 0, 0 );
                   graphics.drawLine( 0, 0, w, 1 );
                   graphics.setColor( 255, 255, 255 );
                   for( int i = 0; i < w; ++i ){
                        int test = Math.abs( random.nextInt() ) % 10;
                        if( test < 4 ){
                             graphics.drawLine( i, 0, i, 0 );
                   flushGraphics();
                   // Now wait...
                   try {
                        Thread.currentThread().sleep( sleepTime );
                   catch( InterruptedException e ){
         // When the canvas is shown, start a thread to
         // run the game loop.
         protected void showNotify(){
              random = new Random();
              thread = new Thread( this );
              thread.start();
    Thanks, see you

    do you have a memory card in your phone? Try freeing up your phones memo by deleting text,images and videos
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Problem running my Java apps in my LG phone. Please help!

    Hi all!!
    I am quite new to the world of J2me, altough I've been coding Java for quite a few years now.
    Recently I bought a LG u 8120 phone with Java-support so I decided it was time to step into the mobile Java-world.
    Now I have written my first small app, a simple timer application which my phone (strangely enough) does not already have.
    So what happens is this : I create my app on my PC and package it with the WTK into a jar -file and a jad-file which i transfer to the phone.
    After this I can see the name of my app in the list of available programs in the phone. But when I try to run it: Nothing. The Java logo shows up for a few seconds and then I am tossed back to the menu.
    I have thought of the following as possible problems:
    1. the 8120 does not support MIDP2.0
    2. I am doing something wrong transfering the files
    3. I have missed out on one or several necessary steps in the process
    Anyone who have developed Java apps for LG phones who can give me some hints?
    I've used the Sun J2ME Wireless Toolkit 2.2 with MIDP2.0 and CLDC1.1 .
    The apps works fine in the emulator. The problem starts when I want to run it in the phone. The phone I've tried is an LG u8120. LG apparently does not want to make life easy for its customers, so there is no support for transfering Java apps in the vendor-supplied software. I suppose that's because they want you to only download stuff from their site. However, after surfing around on some discussion forums for a while I found a program called G-thing which can be used to upload Java apps to LG-phones via USB.
    Any help is very appreciated!
    Thanks,
    Sarah

    Thanks,
    I have tried this and ruled out some of the possible causes.
    When I added some more exception handling, I could see that a "java.lang.IllegalArguenException" is thrown.
    When I ran the AudioDemo package that came with WTK2.2 I noticed that the examples that uses WAV-files do not work while the rest works fine.
    My new theory is now that the u8120 does not support the WAV-format, so I will try with an mp3 instead and see what happens.
    Anyone who knows if LG-phones support WAV-format?
    /Sarah

  • Problem in compiling j2me file

    Hello friends,
    friends my problem in compiling j2me file..
    when i compile my j2me file through WTK2.2 (toolkit)
    then it creates extra file including j2me" .class" file..
    for example if my j2me file is "aman.java" and when i compile it
    then it will covert into "aman.class" file but it creates one more file like "aman1$.class" ..plz help me to get out of this problem..coz its increase my j2me file size..
    thanks
    Aman

    That is an inner class in aman.java that you are seeing there.
    If you use inner anonymous classes, for example;
    public class MyMIDlet extends MIDlet {
       // code for the MIDlet
       // Anonymous inner class
       setCommandListener(new CommandListener() {
          public void commandAction(Command c, Displayable d) {
            // implementation;
            // may access MyMIDlet's private fields
    }then the command listener you create will become another class named MyMIDlet$1.class.
    In this example you can get rid of the inner class by making one of the existing classes implement that CommandListener interface:
    public class MyMIDlet extends MIDlet implmements CommandListener {
       public void commandAction(Command c, Displayable d) {
         // implementation;
         // may access MyMIDlet's private fields
       // code for the MIDlet
       // Instead of the anonymous inner class, we can now use MyMIDlet since it
       // implements CommandListener
       setCommandListener(this);
       // etc. etc. etc.
    }shmoove

  • JSR 172 XML parser in WTK 2.5: problems compared to 2.2

    Hi,
    I'm experiencing 2 problems with the WTK 2.5 JSR 172 XML parser that do not occur with:
    -WTK 2.2
    -Sony-Ericsson Emulator WTK2
    -Sony-Ericsson devices.
    They are:
    - attributes.getLocalName(i) always returns an empty string
    - documents with multiple roots cause a parser panic
    Anyone has a hunch?
    Thanks a lot,
    Philippe
    Message was edited by:
    philippelaporte

    I wonder if anyone has encountered the same problem as I and has found a workaround about it. I am trying to create a UI builder that generates itself by reading an XML file.
    One of the elements is a Combo Box, which should be read from the following structure:
    <form>
              <combobox>
                       <value>My first value</value>
                       <value>My second value</value>
                       <value>My third value </value>
              </combobox>
    </form>Then I proceed to generate a vector of UI Elements, and process the Combobox, for example, as follows:
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import java.util.*;
    public class UIConfHandler extends DefaultHandler{
         //For knowing to which element am I adding content
         private Stack tagStack = new Stack();
         //An interface that allows me to access content to my elements
         private UIElement element;
         //A container of the elements retrieved from the file
         private Vector envelope;
         public UIConfHandler(){
         public void startDocument() throws SAXException {
              envelope = new Vector();
         public void endDocument() throws SAXException {
         public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException{
              System.out.println("Beginning of the element");
              if(qName.equals("combobox")){
                   //I just cast my element as a Combo Box element, and add specific content from within the attributes of the tag
                   element = new ComboBoxElement(attributes.getValue("id"),attributes.getValue("label"),attributes.getValue("type"),"");
              else{
              //And I add the reference to which element am I currently in via the stack
              tagStack.push(qName);
         public void characters(char[] ch, int start, int length) throws SAXException{
              String chars = new String(ch, start, length).trim();
              if(chars.length() > 0){
                   if((qName.equals("value"))){
                        if (element instanceof ComboBoxElement ){
                             //I add a specific value to a Vector inside my ComboBox content
                             ((ComboBoxElement) element).addElementToVector(chars);
                   else{
                        System.out.println("Content with no action specified.");
         public void endElement(String uri, String localName, String qName, Attributes attributes) throws SAXException{
              System.out.println("End of the element");
              if(qName.equals("combobox")){
                   //After all the values are added inside the internal vector of the element, add the element to the container
                   envelope.addElement(element);
              //And remove the combobox element from the stack
              tagStack.pop();
         public Vector getEnvelope() {
              return envelope;
    }Afterwards, I would use this element to create a ChoiceGroup to be viewed in a MIDlet. The problem is that the code in endElement is never called. Does somebody know what this could be?
    /C�sar
    Message was edited by:
    Sigurdvh

  • JSR 172 XML parser in WTK 2.5: problems compared to 2.2 (part 2)

    Hi,
    I'm experiencing 2 problems with the WTK 2.5 JSR 172 XML parser that do not occur with:
    -WTK 2.2
    -Sony-Ericsson Emulator WTK2
    -Sony-Ericsson devices.
    They are:
    1- attributes.getLocalName(i) always returns an empty string
    I tried:
    parserFactory.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
    -> still the same
    Then I tried:
    parserFactory.setFeature("http://xml.org/sax/features/namespaces", true);
    with this I get an exception when I try to create a parser.
    2- documents with multiple roots cause a parser panic.
    It is widely known that an XML document MUST NOT have multiple roots.
    I know. So what you're saying is they fixed a bug...
    Still, since devices and the WTK 2.2 doesn't have it, I was hoping there might be a backwards-compatiblity mode.
    I am trying to use the XML parser to parse a small HTML subset. If at least the panic Exception reported the position in the stream, maybe I could just start parsing again from there.
    The point is, why has ist changed, and will the change move to all implementations.
    Anyone has a hunch?
    Thanks a lot,
    Philippe

    Hi,
    I'm experiencing 2 problems with the WTK 2.5 JSR 172 XML parser that do not occur with:
    -WTK 2.2
    -Sony-Ericsson Emulator WTK2
    -Sony-Ericsson devices.
    They are:
    1- attributes.getLocalName(i) always returns an empty string
    I tried:
    parserFactory.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
    -> still the same
    Then I tried:
    parserFactory.setFeature("http://xml.org/sax/features/namespaces", true);
    with this I get an exception when I try to create a parser.
    2- documents with multiple roots cause a parser panic.
    It is widely known that an XML document MUST NOT have multiple roots.
    I know. So what you're saying is they fixed a bug...
    Still, since devices and the WTK 2.2 doesn't have it, I was hoping there might be a backwards-compatiblity mode.
    I am trying to use the XML parser to parse a small HTML subset. If at least the panic Exception reported the position in the stream, maybe I could just start parsing again from there.
    The point is, why has ist changed, and will the change move to all implementations.
    Anyone has a hunch?
    Thanks a lot,
    Philippe

  • Detect key status of '*', '#' & '0' of using getKeyStates() method

    Any know the how to get key status if using getKeyStates() method of GameCanvas object in pressing keys "*", '0' & '#' (as I know, the method just can detect key pressing of number 1~9)? If no, is there any method able to do so (similar function of getKeyStates() but not keyPressed()) or how to modify the method able to function it ?

    Hello,
    Sorry for the confusion... let me try to be more clear...
    So, my test campaign for a specific UUT is composed of about a dozen sequences, which can be run independently. But I created another sequence, to work as a "batch", calling all these dozen sequences.
    Pretty much what it does is:
    1) Call first sequence in new execution
    2) Wait for execution to finish
    3) Check results of execution
    4) Add results to report
    5) Wait 10 seconds
    6) Call second sequence in new execution
    7) So on...
    So, for each new execution, I have a dedicated report, which is exaclty what I want. But for my "batch" sequence, I would like to be able to get a report saying which executions passed or failed, so I don't have to open the reports for each execution individually.
    The way I'm doing this (in step 3 above) is with the following expression:
    ( Find( RunState.PreviousStep.ResultStatus, "Passed", 0, True, False ) >= 0 ) ) ? "Passed" : "Failed"
    This way, anything different than "Passed" would give me a "Failed" result for that execution, and that's fine. The problem is that when one of the executions is terminated before it's finished, the PreviousStep.ResultStatus is giving me "Passed".
    I didn't know about the GetStates() method... Looks promissing! I'll give it a try.

  • Eclipse ME with SDK 3.0 problem

    Hello,
    There is actually a thread a few below this one on the same issue, but it has been locked as someone bumped it from many pages down. My problem is that I can no longer run my Java ME projects on the emulator in Eclipse, having just changed from WTK2.5 to the SDK3.0.
    I get the following message in the console:
    Syntax:
    emulator [arguments]
    In order to get commands supported by given device run:
    emulator.exe -Xdevice:<device name> -Xquery
    Generic list of arguments is:
    -version           Display version information about the emulator
    -help              Display list of valid arguments
    -classpath, -cp    The class path for the VM
    -D<name>=<value>   Set a system property
    -Xdebug            Use a remote debugger
    -Xrunjdwp:[transport=<transport>,address=<address>,server=<y/n>
               suspend=<y/n>]
                       Debugging options
    -Xdevice:<device>  Select a device skin for the emulator
    -Xdomain:<domain_name>
                       Set the MIDlet suite's security domain
    -Xmain:<main class name>
                       Run the main method of a Java class, as in Java SE
    -Xquery            Print device informationThe OP of the other thread seemed to find a solution- to use Create Package then run the emulation "Over the air". This is not ideal, as I would have to use Create Package every time I changed the program.
    Is there an easy solution? An argument missing somewhere or something misconfigured?
    Thanks,
    Jack
    Edited by: jackCharlez on Feb 28, 2010 6:18 AM

    Hi Tejas,
    it should work. I tested it right now and my proxy was used without any problems. The way how you set proxy settings is correct.
    Could you try following to verify that it is a proxy problem or not, please?
    1. run demo application "Demos" (from Start Page or File->Open Sample Project)
    2. choose "HttpView" midlet and start it
    3. choose "cnn"
    4. if proxy is set correctly, you will see page source; otherwise you will get an error message
    If the demo runs fine, the problem is probably somewhere else in the communication.
    There is one limitation in proxy settings. Only proxy without username and password is supported. Isn't it your case?
    Regards,
    Radko

Maybe you are looking for

  • Route pattern to SIP trunk problem

    Hello, I have a 2801 router that has been configured with CME and a working SIP connection to my local ISP. Tested with calls via CME so I know for sure that the SIP config and dial plan is fine on this gateway. Next I wanted to try out CUCM so I set

  • Drag-n-Drop problem in DataGrid with custom ItemRenderer

    Hi, I am trying to use a DataGrid to set the ordering of a group of images. I want to do this with a DataGrid which will show me some properties of the images in different columns including a thumbnail of the image. The problem is when I use any cust

  • Says apple id has been disabled

    on app store , i get a message : your apple id has been disabled , i have resetted it several times?

  • IPhone 5 panorama causes freeze and crash

    So basically every time I use panorama on my iPhone 5 it freezes and crashes. Restart using both off and home buttons, and it goes on. Apple please fix ios6 on iPhone 5, my iPhone 4S is fine.

  • Please help me with big document

    I have a xls file which is located about 5000 lines, each line I need to attach several files, jpeg and 1-2 in text fileswhich must be searched. I tried to solve this problem through acrobat portfolio in which I created in 5000 foldersand each folder