Palm OS Emulator problem

hi all,
the problem i've got has something to do with the refreshing of my Midlet's display.
I've got two "Displayables" one Canvas and one TextBox, first i set the Canvas (with an image) as the current object on my display, it works fine, the problem is that i've got a command in the Canvas that when pressed it change the midletsdisplay.setCurrent(TextBox).
If i run this midlet with the ktoolbar application everything works fine, but if i run it with the Palm Os Emulator 3.3 the Canvas is not removed from the display and i cant see the TextBox.... any ideas?
thank you,
Laura.

[LauraD],
What you are seeing with the Display.setCurrent() method is explained in the MIDP API documentation. There isn't a website that I can point you to the online, so I have taken the liberty to cut n paste the setCurrent() API documentation explanation of its usage:
setCurrent
public void setCurrent(Displayable nextDisplayable)Requests that a different Displayable object be made visible on the display. The change will typically not take effect immediately. It may be delayed so that it occurs between event delivery method calls, although it is not guaranteed to occur before the next event delivery method is called. The setCurrent() method returns immediately, without waiting for the change to take place. Because of this delay, a call to getCurrent() shortly after a call to setCurrent() is unlikely to return the value passed to setCurrent().
Calls to setCurrent() are not queued. A delayed request made by a setCurrent() call may be superseded by a subsequent call to setCurrent(). For example, if screen S1 is current, then
         d.setCurrent(S2);
         d.setCurrent(S3); may eventually result in S3 being made current, bypassing S2 entirely.
When a MIDlet application is first started, there is no current Displayable object. It is the responsibility of the application to ensure that a Displayable is visible and can interact with the user at all times. Therefore, the application should always call setCurrent() as part of its initialization.
The application may pass null as the argument to setCurrent(). This does not have the effect of setting the current Displayable to null; instead, the current Displayable remains unchanged. However, the application management software may interpret this call as a hint from the application that it is requesting to be placed into the background. Similarly, if the application is in the background, passing a non-null reference to setCurrent() may be interpreted by the application management software as a hint that the application is requesting to be brought to the foreground. The request should be considered to be made even if the current Displayable is passed to the setCurrent(). For example, the code
         d.setCurrent(d.getCurrent()); generally will have no effect other than requesting that the application be brought to the foreground. These requests are only hints, and there is no requirement that the application management software comply with these requests in a timely fashion if at all.
If the Displayable passed to setCurrent() is an Alert, the previous Displayable is restored after the Alert has been dismissed. The effect is as if setCurrent(Alert, getCurrent()) had been called. Note that this will result in an exception being thrown if the current Displayable is already an alert.
To specify the Displayable to be shown after an Alert is dismissed, the application should use the setCurrent(Alert, Displayable) method. If the application calls setCurrent() while an Alert is current, the Alert is removed from the display and any timer it may have set is cancelled.
If the application calls setCurrent() while a system screen is active, the effect may be delayed until after the system screen is dismissed. The implementation may choose to interpret setCurrent() in such a situation as a request to cancel the effect of the system screen, regardless of whether setCurrent() has been delayed.
Parameters:
nextDisplayable - the Displayable requested to be made current; null is allowed.
So as you can see, setCurrent() requests are only hints as explained in the documentation. There is no requirement that the Java Application Management software comply with these requests in a timely fashion ,if at all. Therefore what it means for you is that the JAM implemented for the wireless toolkit inteprets the call to setCurrent() differently than the Palm OS application management software which is running on the Palm OS operating system. Suffice to say, this does not mean that the MIDP implementation for the Palm OS is non compliant, it just means that the different runtime environment inteprets setCurrent() differently since calling the method is just a hint to the system to bring the Displayble object to the foreground.
It will be helpful if you can post snippets of the code for us to examine and suggest a way to workaround your issue.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/

Similar Messages

  • Newvie: How to simulate J2ME appliations on Palm OS (emulator)

    Hello!
    I wanted to write app in J2ME for a palmtop with Palm OS. On
    java.sun.com I found information that J2ME Wireless Toolkit 1.0.4_02
    runs with Palm OS Emulator. Also the emulators list at (2) said
    that. This was confirmed by the The Lurker's Guide to J2ME (3).
    I installed J2ME Wireless Toolkit 1.0.4_02 and I haven't found such
    an option - there is no PalmOS_Device in a Device pulldown menu. In
    Toolkit 2.3 neither. I have PalmOS Emulator up and runnin' but I do
    not know how to run a java application (J2ME project)
    on it.
    What should I do?
    Thanks 4 help in advance.
    Links
    (1) http://java.sun.com/products/sjwtoolkit/download.html
    (2)
    http://developers.sun.com/techtopics/mobility/midp/articles/emulators/index.html
    (3) http://www.blueboard.com/j2me/notes/2002_6_24.htm

    hi,
    could you be a little bit more precise. Are not all MIDP'a included in Wireless Toolkit?
    What in particular should I download?
    I do not know also how to put the application on the device PalmOS emulator as it runs on rom image files: *.rom.

  • Using palm os emulator through java wireless toolkit!!.....pls help

    I have palm os emulator 3.5 installed.I am trying to integrate it wid d java wireless toolkit 2.2,in addition to d default devices provided by d toolkit.But i hav failed to integrate pose in jwtk.
    i am running midp2.0 and cldc1.1.
    Also i have downloaded d rom files required by d emulator.
    Pls anyone help me!!
    How can i use palm os emulator through java wireless toolkit?
    thanking you
    shivam sahai

    hi,
    I hope that you already have the J2ME Toolkit and that your emulator works okay. In the toolkit you get several examples to show you how to program a MIDlet. One has to do with a HTTP client server connection. Also in the API documentation for the J2ME there is a Connector class that you used to set up this communication and in the description of this class it pretty thoroughly explains how to set up an HTTP protocol client.
    However, if you want to do some other kind of networking then you are pretty much out of luck, as the TCPIP socket protocol has not been fully implemented and is optional to the J2ME specifications, only the HTTP protocol is certain to be available. This means that mobile phone companies can add other networking functionality to their phone's java virtual machine if they feel like it. This is a bummer I know.
    I hope this helps.
    Cheers,
    Mark

  • Versamail in a Palm OS Emulator

     Hi team,
    I've installed Versamail application in Palm OS Emulator and I'd like to set it up to receive and send email. Is it possible? 
    What is the Mail Service. Protocol? What is the Incoming and Outgoing mail Server?                                                                             Is it possible to read my emails in Palm Desktop as I read my contacts and media?                                                                                                                                                                                                                                                                   I need your help, please.                                                                                                                                                       Regards
    Post relates to: Tungsten E2

    I doubt the emulator can retrieve email, but I've never tried.
    Mail Service - The mail service you're using!
    Protocal - IMAP or POP
    Incoming/Outgoing servers - like any email account, you have to specify what servers to use!
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Palm WebOS Emulator fails to setup on Virtualbox 3.1

    the webos SDK doesn't work under the latest version of VirtualBox (3.1) .
                 VirtualBox version not supported.
                 Palm webOS Emulator requires a previous version of
                 VirtualBox to be installed. Currently supported versions are
                 3.0.0 to 3.0.12.
    The 1.3.51 SDK worked after upgrading to VirtualBox 3.1, so I imagine this is just a faulty search in "/opt/PalmSDK/0.1/share/jars/webos-emulator.jar".
    If this isn't the correct forum for this bug, please let me know where I should submit it.
    This question was solved.
    View Solution.

    Developer forums can be found here.
    http://developer.palm.com/distribution/index.php

  • Exclusive choice list with Palm OS Emulator

    hi,
    I try to use an exclusive choice list with a palm os 3.5 and 4.0. (MIDP for Palm 1.0.3)
    But my screen show me only the text with a small point in front of it. It isn't possible to determine visually which line is selected!
    I haven't find any information about this problem in bug list and I'm very surprised!
    Is that a solution?
    Thanks
    Pascal

    [rapazp],
    Firstly, I do know that the MIDP for Palm OS 1.0 BETA has not been officially tested on PalmOS 4.0, so you may get some funny rendering issues with the screen. However, you should not get any problems with PalmOS 3.5.
    An "Exclusive Choice" List is usually rendered to the screen as a group of radio buttons so you should get to see a couple of radio buttons that you can scroll up or down and pick one choice. Are you testing this on the emulator or are you testing this with the MIDP.prc installed on your Palm device?
    Below is some simple source code sniplets using Exclusive Choice List:
    List list = new List("Border Style", Choice.EXCLUSIVE);
    list.append("Selection 1", null);
    list.append("Selection 2", null);
    list.append("Selection 3", null);
    list.addCommand(BackButtonPressed);
    list.addCommand(OKButtonPressed);
    public void commandAction(Command cmd, Displayable d) {
    if (cmd == OKButtonPressed) { int i = (List)d.getSelectedIndex();}
    else if (cmd == BackButtonPressed) { //code to handle the Back button command}
    }HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Palm TX HotSync Problems with Windows Vista (DeskTop V6.2.2 HotSync Manager V7.0.2)

    I have recently had to re-install DeskTop on my Windows Vista PC and at the same time updated to V6.2.2. but the HotSync manager gets to "Synchronising Date Book" and just hangs up until I close things with Task Manager. I've tried re-booting my PC reloading the software and soft resetting my TX but so far I haven't found a solution. Can anyone help please?
    Post relates to: Palm TX

    When a sync hangs on a component of Palm Destop, it usually means the data is corrupted in that component. The calendar is the culprit most of the time.
    Click on the following link for the program called DbFixiT. This program has a trial version that you can download and install on your Palm OS device. The trial version will scan for database corruption and then report the corruption. You can then find the records causing the problem and fix them yourself or you can purchase the program and have it automatically fix the records.
    http://www.pimlicosoftware.com/dbfixit.htm
    To install the program, set all conduits to "do nothing" except quick install or install if using Palm desktop 6.2.
    After you install the program on the handheld, run the scan and also scan for Blobs in the calendar.
    After you clean-up the database on the handheld, set the conduits in hotsync to handheld overwrites desktop and perform a hotsync.
    If you need more info. regarding DBFixit, there is a PDF manual on their website.
    For reference purposes, click on the following link for the support page for your device on the kb.hpwebos.com webpage.
    http://kb.hpwebos.com/wps/portal/kb/na/tungsten/tx/unlocked/home/page_en.html
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.

  • Java ME Platform SDK - S60 Emulator Problem

    Hi Everyone!
    I am new to S60 development. I searched the forum, and some other discussion forums but could not find any solution to my problem (If there is one in this forum, sorry about that).
    I installed Java ME Platform SDK 3.0 Early Access. I also installed Java SDK for S60-FP1, and added this platform to my IDE with no problems.
    The problem is, I can write and execute my code on S60 emulator, but Java IDE has got this annoying exception blinking on the bottom right side saying: "java.lang.IllegalArgumentException: Device S60Emulator not registered!". As I said, I can run the application, but I cannot debug because of some exceptions!
    Why this can be happening, can it be a misconfiguration or something?
    Thank you all!

    Did you check Release Notes of the SDK? I've seen it once - if memory serves it lists quite a lot of known bugs.
    Maybe the problem you describe is listed there too... and if you're really lucky then description may even mention some workaround for it.

  • Palm Z22 screen problems.

    Hello i own a Palm Z22. yesterday the screen on it stoped working. i was playing solitair on it the night before the screen stoped working. i had left it on my living room table. i have tried resetting the device but that has not worked. is there anything i can do to fix it? Or do i need to have it replaced? i use the device for my job so i really need to fix it.
    Thanks,
    Morgan L.
    Post relates to: Palm Z22

    Have you done a soft or hard reset of the device yet? To do a soft reset if you do not know how to do one, is you put the stylus in the reset hole in the back of the device. If you do not know what a hard reset is go here http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=887. Now I should tell you this will remove everything from the device and restore it back to factory settings. So you should sync it to a computer so you have your data backed up.
    If you did a soft and hard resets and the problem is still not resolved you need to have the device repaired or replaced. You can call into our support at 866-935-7256.
    Post relates to: Treo 800w (Sprint)

  • Terminal Color emulation problems (emacs)

    I'm trying to use emacs for a C course I'm taking in college, and my goal is to configure it like a fully functional IDE. So far I'm at color problems.
    I've installed the color-themes package along with cc-mode, and some text/background combinations aren't being emulated correctly. For example, certain bold things have the same foreground and background colors, such as file names and other stuff. I've been having more problems with other color emulation too, like servers that use color emulation for ls to show different types of files.
    Also, I can't seem to use control+meta at the same time, it just uses meta.
    My terminal is set to xterm-color
    Here are some images demonstrating the problem:
    http://users.wpi.edu/~zm/emacs-colors1.jpg
    http://users.wpi.edu/~zm/emacs-colors2.jpg
    Here is my .emacs file :
    (custom-set-variables
    ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
    ;; Your init file should contain only one such instance.
    '(case-fold-search t)
    '(current-language-environment "English"))
    (custom-set-faces
    ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
    ;; Your init file should contain only one such instance.
    ;; add ~/emacs-libs to load path
    (setq load-path (cons "~/emacs-libs" load-path))
    (progn (cd "~/emacs-libs") (normal-top-level-add-subdirs-to-load-path))
    (progn (cd "~/"))
    ;; load color-theme library and start color-theme-andreas
    (global-font-lock-mode t 1)
    (font-lock-mode)
    (load-library "color-theme")
    (color-theme-initialize)
    (color-theme-andreas)
    ;; load line number mode
    (require 'linum)
    ;; Create my personal style.
    (defconst my-c-style
    '((c-cleanup-list . (brace-else-brace
    brace-elsif-brace
    brace-catch-brace
    empty-defun-braces
    defun-close-semi
    list-close-comma))
    "My C Programming Style")
    (c-add-style "PERSONAL" my-c-style)
    ;; Customizations for all modes in CC Mode.
    (defun my-c-mode-common-hook ()
    ;; set my personal style for the current buffer
    (c-set-style "PERSONAL"))
    ;; Customizations for all modes in CC Mode.
    (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)

    Are you using the emacs that Apple provides in Terminal? The one in /usr/bin?
    If so, perhaps you would be happier with an emacs that understands the idea of having its own windows?
    Two ways to do that...
    1) Use X windows, and install an emacs that understands X windows
    2) Find one of the versions of emacs that has been taught to understand Aqua, i.e., that works within the Finder/Desktop environment.
    Of the latter, I think there are couple out there on the web, Aquamacs Emacs and Carbon Emacs (but I don't keep carefull track, so I'm not sure).
    For the former, it's a bit more work to find and install such an emacs. One possibility is the "fink" package management system.

  • Emulator problem

    Hi
    I have a problem I am trying to run the hello.Midlet in Sun Java Me 3.0 the problem is, is that the code is built but the IDE does not run the emulator? I dont have this problem running the same code in the BlueJ IDE using the Wireless ToolKit 2.5.2

    I usually instance JDK -> WLTK or JDK ME 3.0 -> Netbeans
    When start Netbeans, I choose browse of application is C://Sun/Application, by I create in C://
    And I don't see error when running application, I think maybe User in Win7 when use, or folder's name created.

  • Palm M100: Urgent Problem - HELP!!

    Hi,
    I have a problem in both opening my Palm M100 on the desktop and in using the HotSync operation..
    1. When I try to open on the Desktop a Box opens with the message "Error: Failed to Address Book Database". When I click the 'OK' button a new Box opens with the message "Error:Invalid configuration. Terminating the Palm Desktop".
    2. When I try a HotSync from the device to the PC (Windows XP Prof) it connects BUT the following Box pops up headed "HotSyn Problem". The message in the Box reads: "Synchronization generated one or messages. Please see the HotSync Log for details". When I click on the "Log" Button I am given a message that reads as follows:
    OK Date Book
    -- Address Book
       - Some handheld records were not copied to your PC. Your computer may be full or you may have reached the maximum allowed records on the desktop. To correct this situation, delete some records and perform a HotSync operation again.
         Desktop = 0, Handheld = 654
    Address Book synchronization failed
    OK To Do List
    OK Memo Pad
    OK Note Pad
    I don't believe I have reached the maximum number records of memory but have deleted some records. However I still have the same problem. I am low on battery so face the prospect of loosing all my valuable contact & diary data unless I can solve this issue SOON!
    Thanks in anticipation.
    Post relates to: Palm m100

    Questions about that particular error message have been asked and answered many times here on the Forums, including this thread which was the first response to my use of the Forum's Search tool:
    http://forums.hpwebos.com/t5/Palm-OS-WinMo-Hardware/Error-Failed-to-open-Address-Book-database/m-p/3...
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • Kde 3 Emulator Problem

    I use Wireless Development kit on SuSE 8.0 with Kde 3 and the Emulator-Phone Window size is about 50 x 20 pixel...(and i can't change the size) anybody knows what to do?

    Problem solved... there seems to be a bug in the jdk1.3.x that Frames don't get the right size ... in Jdk1.4.0 all works fine.. ;-)
    greetings repo

  • New Palm TX power problem

    My school has 4 new Palm TXs.  3 of them will not function when unplugged from AC adapter.   They have been in storage for about a year but it seems like the batteries should still work after charging for 3 hours.  Is there a setting or a trick I have missed?  We have 50 (various models) older palms in service that haven't had this problem.

    I've moved your post from the webOS board to here, since the TX runs PalmOS.
    The old battery recalibration trick was to plug in the charger, then do a Soft Reset (press the Reset button in the back).
    Let it charge again for a few hours and see if it maintains the charge.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Palm 650 hardware problem

    I recently replaced the face of my treo PalmOne.  The switch went fine, however after the switch the phone does not see the cards.  Does anyone know what I might have done.

    Hi All
    Continuing with my story re failed Palm TX. I sent this off for repair on 16th September believing the unit would have been returned in a few days time. I followed all the procedures via the Palm website and even had confirmation when it was booked into the repair centre on 22nd September. Lo and behold this is when the foolishness began. I was sending emails and calling with regards to when the unit would be repaired and returned and not a soul in the customer service section could say, all I kept on being told they were waiting to hear from the repair centre and that they have "escalated" the situation. Now call be dumb but I work in retail, we have repair centre and when I contact them either by telephone or email I get a response also to escalate a situation is to make that matter worse rather than to solve it! My conclusion from all this made me realise the Palm organisation entails departments which do not communicate with each other. It actually took until the 30th October for a unit to be delivered and this was after I had to written to the Vice President of Palm (Europe) who incidentally did not even have the decency to reply; after that a customer services rep contacted me based in Argentina (I am in the UK) offering either a hardcase, SD card and something else as a gift but no mention as to when the unit would be returned! It was then I made it know in no uncertain terms if I did not get the unit by a certain date then I would have to take appropriate action. Suffice to say a brand new unit was delivered on the aforementioned date and no problems have occurred as yet.
    When the unit is working it is fantastic and combined with the third party programs available makes it indispensable, but this is let down by the poor aftersales service if something should go wrong. At this point I would feel very uncomfortable in recommending a Palm product to anyone but for me I will persevere with it.
    Post relates to: Palm TX

Maybe you are looking for

  • GR/IR Acccount not Clearing properly.

    HI, I have 2 GR's for a Purchase order, and the user has done IR and due to some reason he reversed the IR and did the IR again with less invoice value. Now the system did not the clear the GR for which the reversal of IR is done instead ir cleared t

  • Qosmio F30-112 D-video to (HDMI or A/V)

    I need to connect my F30 to a plasma TV what kind of cable to use ,the only cable in the box was a D-video/SCART. Please help!

  • Ping - Request Timed Out

    Anyone any ideas why I cannot ping my IP address? All I get is 4 lines of Request timed out Solved! Go to Solution.

  • Unreported Exception java.lang.InstantiationException

    Dear Friends, I am developing javabean connectivty for inserting records to mysql database from jsp. when i try to compile java bean program. It gives an error like unreported Exception java.lang.InstantiationException: Must be caught or declared to

  • First time opening crash

    Hello everyone, just installed for the 1st time Aperture on my iMac but it doesn't open at all. It gives me this message: Dyld Error Message:   Library not loaded: /Library/Frameworks/PluginManager.framework/Versions/B/PluginManager   Referenced from