Unable to find Key Events when there are multiple Commands

Hi,
I've developed a simple J2ME Appln containing 3 commands
for ex- Exit,Help and Info(all with same priority).
As there are 3 commands, Exit command is present at the left and the other two namely Help and Info have been listed under Menu and this Menu command is presented at the right.
My MIDlet class has extened MIDlet and implemented CommandListener. Using CommandAction(), I'm able to generate action for Command press and i've also created a nested class which extends Canvas so, using keyPressed and keyReleased, I'm able to find the Key Press Events.
Now, my appln needs to find just the key press events. After i press the Menu command, the two commands namely Help and Info are listed. In tht screen, I need to find out whether any other key events are being generated but my keyPressed and keyReleased are not being called.
Please provide me solution ASAP.

I'm going to make a few assumptions:
1. The menu you're describing is the automatically generated one caused by having more than two commands.
2. The subclass of Canvas is the currently active Displayable (otherwise you won't get any key events at all).
If this is the case (and someone correct me if I'm wrong), key events are being handled by the phone's subsystem to drive the menu, which means there's no way to get them. The way I've approached this kind of problem is to create my own menu painting and handling code and incorporated it into the Canvas. Then, make one Command called 'Menu' and have it invoke your custom menu code.
I realise this isn't an ideal solution, but it's something.

Similar Messages

  • What does the Merge Data Stream processor do when there are multiple input streams to it from the same reader?

    Hi,
    I have a process with a reader of master data that outputs 5 records that feeds simultaneously into 3 different lookup and return processors.
    Each lookup and return processor brings some data back from a detail table. There can be multiple details so I follow each lookup processor with a split records from array processor. Hence I end up with 3 'streams' of data. Stream 1 has 8 records, stream 2 has 5 records and stream 3 has 6 records.
    I join all these streams to a Merge Data Streams processor.
    I end up with 9 records so although the help for the Merge Data Streams processor says 'Merge Data Streams does not perform any transformation, matching, or merging of records' there is clearly some merging going on.
    What is the behaviour of the merge data streams processor in this scenario?
    I have added attributes and flags into each of the streams. How many records should I see and what values should the added attributes/flags have (some records show attributes/flags from all 3 streams whereas others show just those attributes/flags from one stream).
    I have developed a test case simply to understand what the processor is doing but it's not obvious and furthermore it's probably unwise to develop EDQ processes where the processor behaviour is not documented and guaranteed to remain consistent. What I am trying to achieve is to bring all of a person's (the master data) various details (assignments, employers, etc.) together so we can check the data (some rules require data from multiple details).
    Thanks, Nik

    Cheers Mike - and for the explanation of the terms.
    I think I understand now how it's supposed to work.
    What I'm finding however is that when I set a flag to Y at the beginning of a path (that includes a lookup and return and then split records from array processor) that flag is showing no (i.e. an empty) value in SOME of the records shown in the subsequent MDS processor (it's fine the very last split processor before we get to the MDS but then again there are fewer records in that split processor than the MDS).
    In my case there are obviously more records in the MDS processor than there were in the original reader (because the lookup and returns are configured to have unlimited maximum matches). As mentioned, the different paths return different numbers of  records before being combined in the MDS. Say a reader has 5 records and path 1 returns 8 records in total including a path-specific flag (flag1, set to Y) but path 2 (that again adds its own path-specific flag (flag2, set to Y) returns just 5 records (since nothing was added from the lookups) are you saying that flag2 would show as 'Y' for all 8 records shown in the MDS?
    Hopefully you would be able to see what I mean if you try to create a process like the one I've described (or I can upload a package).
    Re. the purpose of the separate paths approach it is simply to allow the visualisation ('showing the working' as Neil puts it) of the different checks being carried out by the process.
    This is considered one of the benefits of the tool over writing SQL queries (with outer joins, query criteria, etc.).
    Also, as mentioned I was following an example that Neil put together for us to ensure that we are doing things in a 'proper' and supported way.
    If we put all the lookups, etc. for all the checks into one datastream then it no longer becomes so understandable and the value of joining processors in a process over simply writing SQL becomes questionable; arguably the EDQ process in fact becomes less easy to understand than simply writing SQL.
    Also, to go down this route I will need to revise the (what was previously substantially working until I revised it) processes that I have already developed.
    Thanks, Nik

  • When there are multiple users can the email files that are on the left of the screen be hidden from other users?

    There are several people who might want to use Thunderbird on a work computer but I don't like how everyone's email files are open to public view. It looks like anyone can see emails without having to login to another person's account.

    Use different Windows user accounts for each person, and set-up Thunderbird for each person's email account underneath the respective Windows account.
    It is very easy to switch between Windows user accounts, and multiple people can be logged in simultaneously.

  • Finding last page in SAP Script when there are  multiple layouts involved?

    Hi,
    I want to find out the last page in the SAP script. I have used &NEXTPAGE& = '0', this is finding the last page of a one layout however I do have three layouts in my script. I have also used the &SAPSCRIPT-JOBPAGES(3ZC)& and I have taken one counter and comapred as follows-
    If &SAPSCRIPT-COUNTER_1(+)&  = &SAPSCRIPT-JOBPAGES(3ZC)&
    LAST PAGE.
    endif.
    This is also not working. Please advise if there is anyway to find out the last page from print program.
    Thanks,
    Jyoti

    Hi,
    U can do like this, Set a flag in ur driver program when u reach to print the last layout then pass this flag value to Script. In script check when this FLAG = 'X' & &NEXTPAGE& = 0 then u print the required in ur last page.
    Eg:
    define a FLAG in ur driver program and make the value as 'X' when it reach the last layout.
    in script, write the condition like:
    /:  IF &FLAG& = 'X' AND &NEXTPAGE& = 0
         write text.
    /:  ENDIF.
    Hope it helps!!
    Rgds,
    Pavan

  • [Desktop][Music] Artist page needs to make it easier to find an album when there are many

    If you visit an artist page with a tonne of albums like Antonín Dvořák it is difficult to find a particular album you're looking for. You have the choice between scrolling through heaps of track listings or using grid view. The former is too much to scroll through; the latter requires unnecessary cognitive effort. (I'm going to post a separate idea about that.) What I would like to see is a condensed list of rows, one album per row. Perhaps you could click on part of a row to expand it and see the tracks on it. This could be another display mode alongside the existing two modes.

    Yes, you can do it using a script. This code should do the trick:
    this.movePage(this.numPages-1, -1);

  • How do you update software when there are multiple users with different (unknown) apple ID's?

    We are a college with different users borrowing 'loaner' Macbooks.
    several users with different ID's have installed software that is now tied to that Machines serial number, and cannot be updated or removed apparently. We are trying to update iPhoto for use with iBook author, but it was installed by an unknown user and cannot be removed.

    The only practical solution is to wipe and re-provision the units when they're returned.

  • Can we store values @run time in Adobe Forms when there are multiple views

    Hi,
    I am new to Web dynpro Java - Adobe Forms. I working on a solution for the following scenario.
    I have 3 Views (each an adobe Form) in a web dynpro component.
    I have to capture the user entered values in View1 and View2 (PDFs) and display them in VIew 3 (another PDF)
    I am able to capture the values in the recent view. (view2) but the values from the view1(Context elements ) are cleared.
    Can I hold or store the values from the first view like we do in java using session variables??
    Also, if there is any other way out, please let me know.
    Version:
    NWDS 7.0.1
    SAP Netweaver SP12
    Adobe Designer - 7.0.1
    Thanks in Advance.
    Vasu

    I got the solution

  • Grouping when there are multiple subreports with cross tabs

    <p>I have been unsuccessful trying to make a grouping work on the master report when the sub-reports contain cross tabs. All stored procedures used contain the exact grouping field.</p><p>Where am I going wrong?</p><p>Thanks</p>

    Not much, but good call.
    While I'm not too versed in reading them, as I rarely branch out of the Premiere Pro part of the workflow,
    a quick look at the EDL in a text editor names the files by name and then provides the timecodes for cuts,
    and the like. There's no more information there than anywhere else, though it does tell me what parts
    should flow into what parts. I could manually track to the appropriate places in the source files and see if
    the cut makes sense, and then the file with the most sensical cuts is the one I'm looking for, but again
    that would be a really long process, and would have to be repeated for each and every file.
    Definite credit for thinking of it, though. I hadn't thought of what I could glean from there.
    As for crashing, I've been taking it slow trying to not risk making mistakes and needing to go back and
    re-reimport the files, but I'd assume Premiere Pro doesn't like it too much when you ask it to pull footage
    from the fifteenth minute of a twelve-minute clip. I haven't extensively tested it, though, that's why I offered
    the second scenario, in which it works and I have to figure out what's out of place.

  • How do I make the slide "pause" when there are multiple buttons present?

    I'm creating a selection slide that will allow the user to click button 1, 2, 3 or 4 to jump to the first slide of a topic group or to click button 5 to exit.   The slide should just "stop" until any of the buttons are clicked.  Unfortunately, the slide ALWAYS goes to the jump for button 1 without waiting for any action.
    I've tried adding an invisible click box and an invisible text field with no success.
    What am I missing or doing incorrectly?
    Thanks in advance for any guidance.

    Hi there
    Yep, I can click the image and it scales back up.
    You need to look at the properties for your button objects. I can easily see on the timeline that you have apparently cleared the pause point for each of them. If they had a pause point, they might look like this:
    Cheers... Rick

  • Reporting on buttons in the LMS, when there are multiple buttons on the page

    I have a project, it is 2 slides in multiple languages adding up to 38 slides. The first slide appears in English . The user can click the language of their choice or  click I agree (reported action to the LMS for completion). If they click I agree, no problem.  They score 10 points and the requirement for completion is to score 5. 
    If the user clicks their language, they have the option to click I agree (reported action to the LMS) or they can go Back to English (Jump to first slide).  When I add the  reporting on the I Agree in the language slides.  The Back to English button will only advance to next slide even though it isn't set up that way.  The functionality works fine if I'm not trying to set up reporting.  Any suggestions?

    Hello and welcome to the forum,
    Not sure if I understand well, but think you are bumping into the Quiz scope... I have been trying to explain this in a blog post, with other functionalities of Question and Score slide:
    Question Question Slides
    Lilybiri

  • Minor bug with editing when there are multiple pages of reports on the list

    When I edit a report and save the changes, I am returned to a different page on the list of reports than I started from.
    Steps to reproduce:
    1. Sort reports by Type
    2. On the first page on the list of reports, find  a custom report I created
    3. click Edit, then click Save
    4. I am returned to page 2 of the reports instead of page 1.
    5. If I click Cancel instead of Save, I'm returned to page 1 as expected.
    Depending on which page I started from I may be returned to some other seemingly random page, i.e. starting from page 4 I might be returned to page 3.
    Expected behavior - it should either return me to the first page, or else return me to the page I started from.
    This topic first appeared in the Spiceworks Community

    Make sure your logo is not overlapped with any window... and i guess, your smartform has two page formats...
    Identify the next page attribute of you first page and do the amendments as stated above.
    Regards,
    SaiRam

  • How to I toggle the adjustments from a single mask when there are multiple masks of the same kind?

    If I have multiple brush masks how can I toggle just one of them on and off; for instance just the active pin.  I know I can turn off all of the brush masks at once but I just can't figure out how to toggle them individually. Thanks!

    I think I know what you mean but if you do Reset it resets ALL the brushes instead of just the one.  The OP just wants to toggle one brush.
    To toggle one brush.
    Click on the brush you want to toggle.
    Double click the word "Effect:" int the upper righthand of the slider box,  This resets the sliders to zero
    To reverse, you can click undo
    To see the difference many times, just click back and forth in history to see the changes before you do the undo.

  • Help! How do i make a button state maintain when there are other buttons on the page?

    I need to have the down state of pressed buttons stay in that state when there are multiple buttons being pressed on the same html page...

    Hello and welcome to the forum,
    Not sure if I understand well, but think you are bumping into the Quiz scope... I have been trying to explain this in a blog post, with other functionalities of Question and Score slide:
    Question Question Slides
    Lilybiri

  • I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    Hi...
    Mac OS X keyboard shortcuts
    Control-F4
    Move focus to the active (or next) window
    Shift-Control-F4
    Move focus to the previously active window
    By the way...  since you are new to Mac, click a clear space on your Desktop. You should see "Finder" top left corner of the screen in the menu bar.
    Click Help then click Help Center
    As an example type in    keyboard shortcuts
    You can use the Help menu for almost any application on your Mac.
    Apple - Find Out How - Mac Basics
    For held switching from PC to Mac >  Apple - Support - Switch 101

  • How to change the default JRE when there are several version of JRE in Sys

    How to change the default JRE when there are several version of JRE in System?
    i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
    Now the JRE is jdk1.3\bin
    When run class that was compiled with jdk1.5,throw:
    java.lang.UnsupportedClassVersionError
    How can i change the jre to 1.5?

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

Maybe you are looking for

  • Use a loop in a different key

    I can change the key of a loop while in the Loop Browser, but when I move it to the track, it devolves to its original key.

  • Error related to depreciation while creating PR - BAPI_REQUISITION_CREATE

    Hi Experts, We are using the  BAPI_REQUISITION_CREATE to create the PR  (Purchase requisition). While creating the PR we were got stucked by the following errors. - Parallel depreciation area 33 is not posted -You cannot post to this asset (No deprec

  • How do I convert Outlook mail (.eml) files to PDF

    I've dropped my Outlook mail items I had selected into a folder on my desktop. But I am unable to convert all or any into a PDF.  How do I convert ".eml" files to a PDF format and save? *I am using a MacBook Pro Thank you!

  • Pls help - new to Ipod nano

    Hi everyone, I just received my nano yesterday night and happily exploring it. Everything was fine until when I try to transfer song to the music library. It seems that the iTunes software only allow update of library by folder. How can I update all

  • Add series to existing chart

    I have a chart in its own sheet. The chart has one series from another sheet. I'd like to add a series from yet another sheet, but can't figure out how. I can't drag the new series to the chart... thoughts?