Question on MIDlet command

Hi,
I am new to MIDlet. I seriously need your help. I have got some questions which need your help. They are as follow:
Do any of the MIDP GUI components generate standard Jave events?
Is it possible to mix screen-based components with form-based components?
Will the Command always displayed in a standard format no matter what mobile device implementation it's running on?
I also wish to know what are the steps to make a MIDlet command do useful work?
It would be great if any of the expert here are able to answer my doubts. Hope to hear from you soon.
Thank you.

hi,
By implementing the Command u can able to avoid the SoftKeys problem which was major concern in developing an application.
Go through the Command class in API and u will find good Example also.
it was not possible to include the canvas class in the Form class.
Lakshman

Similar Messages

  • Newbie question on iSeries command in SM69

    I have been asked to create ZCOPY in SM69 to copy a file(ie test.txt) from /usr/interfaces/inbound to /usr/interfaces/outbound.  I know you can use CPYDOC on the iSeries, but how would I go about doing this in SAP?

    I guess I was not clear.  My question should have been this:  On an IBM iSeries, I have a folder created called /usr/interfaces.   In interfaces I have two folders, one called inbound, the other outbound.  I have been asked to create a command to copy from one folder to the other.  Normally, I would do a CPYF (copy file) command to copy the one file to the other, but since we are now talking about folders, do I use CPYDOC to move the file(ie TEXT.TXT) from inbound to outbound, and if so, how do i create this in SM69.
    when I execute the command cpydoc FROMDOC(WRKTAP.TXT) FROMFLR('INTRFACE/inbound') TOFLR('intrface/OUTBOUND') REPLACE(*YES) in sm69, i get this:
    (no spooled files)                                                                                <CPF9006> User not enrolled in system distribution directory.                                                                                <CPF9012> Start of document interchange session not successful for DEV00.                                                                                <CPF8A12> Document WRKTAP.TXT in folder INTRFACE/INBOUND not copied.                                                                                <CPC2206> Ownership of object JLQMHLJOBL in QTEMP type *USRSPC changed.                                                                                External program terminated with exit code 255
    I have security officer authority on the iSeries, and I am enrolled in the distribution directory.  What user is this using to try and execute the command, if it is me, the something else is wrong I guess, but I do not know what.
    Edited by: JOHN PIETROWSKI on Feb 27, 2009 2:08 PM

  • Adobe droplet question, involving Place command and filenames

    Suppose I have two files called, (a) "background.tif" and (b) "Image001.tif".
    Background.tif is a simple black layer, sized to 1500 x 1000 px.  Image001.tif may be cropped to any size.
    I want to do the following in a droplet:
        1. Place (File/Place) "Image001.tif" in "background.tif", knowing it'll be centered and resized as needed automatically.
        2. Save the new file for the web as "Image001.jpg",
        3. close both files without saving (I only need the resulting JPG).
    My goal - I have several hundred files that all need web-ready JPGs created with a standard size black background, so that they'll fit a web gallery that can only handle a fixed set of dimensions.
    Questions:
    1. Is this even possible via automation?
    2. If so, how do I ensure that the JPG that gets created has the same name as the source image file; i.e. "image001.jpg", and then "image002.jpg", etc.?
    3. is there a better way to create the end result, rather than using the place command; i.e. doing this with the original image file instead (thus solving the filenaming question)?
    Running PS CS6 on Win7/64.
    Many thanks!
    Jerry

    Hi csuebele,
    The only requirement is that the final result is 1500 x 1000 px.  The black is used to fill in the sides/tops as necessary.  Since this is to be automated, I need each new file to have a unique name of course (otherwise succeeding files will overwrite their predecessor).
    For example, say I have a file called image001.tif that is cropped to 2400w x 3000h px. I need this to fit a container that's 1500 x 1000 px, with black filling this out.
    Manually I would
    1. Open a black TIFF that's already 1500x1000.
    2. Place the 2400x3000 px image in the black tiff.
    3.  PS then resizes and centers the image to fit, while preserving the aspect ratio. 
    4. Thus the image is now sized to be 800w x 1000h px , with black filling the sides equally; i.e. 750 px of black on either side.
    5. I then save that "new" version of the black file for the web, and then close w/o saving.
    6. End result is a 1500x1000 file called image001.JPG.
    Please see attached for 2 examples:
    Example of a portrait image:
    Example of a landscape image:

  • Scripting Question for Remote & Command list

    There must be some info on the commands / functions allowed for DVDSP scripting. For instance, how does one know ran = random. div = divide. Can you please point me in that direction. Note: already looked at the 2 tutorial sites suggested and the book authors mentioned, and while those were helpful looking for a comprehensive list, or at least some list like so many of my other programming books contain.
    More advanced question: Does anyone know the scripting conversion for the remote control. For example
    if remote = play jump end....
    or
    if controller = next jump start...
    Not sure what the code would look like, but it must be fairly simple, and someone must know the answer:)
    Thanks!!!

    No probs. If you're more specific we could maybe help more. I mean you could write a script and then make the button target that script, or make all buttons target a script and make decisions based on which button was pressed... but there isn't always much point cause you dont have the interactivity level you do with Flash/Director,
    -jake
    P.S Thanks for coming back to the thread. To help the new system, when you feel the question has been answered can you mark it answered/helpful etc, cheers.

  • Geek Question About Terminal Command Prompt

    Strange Question:
    On my wife's Mac (10.9.5) her Terminal command prompts end with "%" (no quotes). On my Mac (also 10.9.5) my Terminal command prompts end with "$" (no quotes).
    This was also the case under Mountain Lion. Neither one of us has ever edited or created a .bash_profile settings file.
    Why the difference?
    Thanks.

    Her default shell is tcsh. Yours is bash.

  • Touch event on midlet command

    Hi,
    I am creating application for touch devices for nokia. J2ME provides methods pointerpressed,release and drag on canvas.
    I have generated a canvas in full screen mode having commands. On click of "option" command, another command menu opens, which is having commands like Ok, Back, Next.
    Now to get the event of sub command menu I have to get that which command is clicked.
    My question is how can I get that particular command has been clicked? Application is for N97/Music express (no keyboard support). I just want the way out using touch functionality. keypress event is not at all useful for me.
    Thank you in advance.
    Rajiv

    hi,
    By implementing the Command u can able to avoid the SoftKeys problem which was major concern in developing an application.
    Go through the Command class in API and u will find good Example also.
    it was not possible to include the canvas class in the Form class.
    Lakshman

  • Basic question on jtag command sequence

    Hi,
    I have a very basic question on creatng JTAG Command sequences for Virtex 7 FPGAs. I was going through the pdf ug470_7Series_COnfig.pdf
    http://www.xilinx.com/support/documentation/user_guides/ug470_7Series_Config.pdf
    In CHapter 6, Table 6.3, 6.4 and 6.5 , some commands sequences have been mentioned. I want to understadn how to form command sequences based on the tbales given here. What does "X" mean in these tables? Which columns here (TDI, TMS, TCK) are used for creating command sequences? Is the length of each command fixed to 32 bits?
    Rgds
    Sapan
     

    Try this out.
    login as dns.
    create sequence suggest_seq
    grant select on seggest_seq to usr
    login as usr.
    create synonym sugest_seq_usr for dns.suggest_seq
    select suggest_seq_usr.nextval from dual
    Maybe you missed the select grant on the sequence .

  • Ical Applescript questions and missing commands

    This is an advanced itunes question....
    I am using itunes with ical and applescript to run a radio station.   I have used alot of things from Doug Adam's and taken some things past where i can get help.   I am using itunes 7...and os X 10.5.8 .   i am also using ical buddy, gcal(for xml) and a few other neat little tricks.  
    I have run into a few technical problems and was wondering if anyone knew how to fix them.
    1 Problems happen:    is there a way to disable ALL pop-up warnings in itunes........not just sync, or playlist warnings, but all errors that require someone to click......
    2 is there a way to Toggle (on/off) itunes soundcheck in the preferences when you set a playlist to play with an applescript
    Thank you,
    Jacob Bouchard
    www.wfku.org

    I  have updated to Itunes 10.4, and have encountered a whole new set of problems
    1. (solved)  the popup warnings in Itunes 10.4 are gone.   I have a good backup applescript that forcequits the applescript app, or forces a return Key press into the warning window.   It works but i want to make it better
    2. (solved)   I have solved the soundcheck problem with an applescript (its not pretty, but does the job)
    NEW PROBLEM:
    upgrading to Itunes 10.4 removed the *Smart shuffle features that were in Itunes 7.6.   (this is much different from smart playlists)  
    I NEED THAT FEATURE
    Can someone at apple please give me the Hexidecimal code  i need to replace in the com.apple.itunes prefs file that will re-orient the smart-shuffle  to *shuffle "Songs"  with "least likely artist repeat" Setting
    Thanks in Advance,
    Jacob
    *Removed in iTunes 8
    also as a sidenote iCal version 4.04 is doing something shady when i export the event information.   It feeds garbage into my code which creates errors apparently at random.   The problem is resolved with earlier and later releases of iCal (That i cannot use becuase i have a Macbook pro 2006 Intel Duo core which will not take the lion operation system)   Sometimes it feeds garbage after the ical information that my shellscript is requesting

  • Question on top command output in solaris

    Platform : Solaris 5.10
    In the top output, if you look at the CPU colum, you can see that one process (2415) is consuming 95.84 % of CPU, another process (28533) is consuming 91.81%. How can this happen ? If one process is consuming 95.84 , then less 5% of CPU is available to all other processes . Right?
    load averages:  4.24,  4.02,  3.89;                    up 57+10:17:11     14:36:35
    252 processes: 245 sleeping, 1 zombie, 6 on cpu
    CPU states: 40.7% idle, 46.7% user, 12.6% kernel,  0.0% iowait,  0.0% swap
    Memory: 16G phys mem, 1002M free mem, 31G swap, 31G free swap
       PID USERNAME LWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
      2415 oracle     1   0    0 6267M 6182M cpu     45.7H 95.84% oracle   -------- ???
    28533 oracle     2   0    0 5245M 5166M cpu     88:23 91.81% oracle   -------- ???
    12062 oracle     2   0    0 5245M 5166M cpu    194:39 82.03% oracle
      3459 oracle     1   0    0 1380K  996K cpu      9:55 73.00% gzip
      2276 oracle     2  35    0 5244M 5165M sleep    0:16 12.84% oracle
    13629 oracle     2  33    0 5244M 5165M sleep    4:51 12.44% oracle
      7784 oracle     2  32    0 5349M 5270M sleep    1:51 11.85% oracle
      5217 oracle     1 100  -20 5248M 5154M sleep   17.5H  3.05% oracle
      5225 oracle     1 100  -20 5248M 5154M sleep   17.3H  2.87% oracle
    14569 oracle     1 100  -20 6273M 6175M sleep   28.0H  1.61% oracle
    14565 oracle     1 100  -20 6271M 6173M sleep   28.8H  1.56% oracle
      1052 root      44  59    0   61M   36M sleep  319:29  1.41% crsd.bin
    15734 oracle     3   0    0   33M   12M sleep  591:32  1.11% tnslsnr
      5237 oracle     2  59    0 5275M 5181M sleep   79:47  0.51% oracle
      5235 oracle     2  59    0 5271M 5177M sleep   81:17  0.44% oracle

    I think you are right. This machine has 8 CPUs and there are 15 lines in the output . May be each line in the top result is for each core.
    Result of psrinfo showing the number of CPUs
    $ /usr/sbin/psrinfo
    0       on-line   since 04/12/2011 09:19:34
    1       on-line   since 04/12/2011 09:19:42
    2       on-line   since 04/12/2011 09:19:44
    3       on-line   since 04/12/2011 09:19:46
    4       on-line   since 04/12/2011 09:19:48
    5       on-line   since 04/12/2011 09:19:50
    6       on-line   since 04/12/2011 09:19:52
    7       on-line   since 04/12/2011 09:19:54Edited by: Tadeusz on Jun 8, 2011 8:13 AM

  • Question about AppleScript command.

    I am looking for a command in AppleScript that will Operate a Key Binding. For example, I want to, in my script, have the computer use "Command-Shift-Z" without me touching the keyboard. I have looked through the entire AppleScript PDF from Apple and found nothing that could help me. I have considered using Terminal to create a script that fires the key binding, but I know very little about how to use Terminal. I have also played around with X11, (for about an hour and knowing nothing about what it is,) and that got me nowhere. There was a "bind" command in X11, but like I said, I have no idea what X11 is.
    If AppleScript can't do this for me, could someone suggest a way of scripting that command some other way, then importing\implementing it in AppleScript?
    I am basically trying to automate my dictation program by using Mac's built in "Speech" to start the program, then turn off "Speech" then turn on the microphone in the other program and open a new notepad to dictate to.
    I have every part of the script down but the parts that require input from the keyboard....
    Any help is GREATLY appreciated!

    Thank you again for the help! I have figured it all out, thank god for apple having an easy laungage to understand! I'll post my script here and in the other forums, just incase someone is looking for something like this. I have kind of taken it upon myself to set my mac up to run, nearly, or totally, from voice commands.
    Thank you again!
    tell application "MacSpeech Dictate.app"
    activate
    end tell
    tell application "System Events"
    if UI elements enabled then
    tell process "MacSpeech Dictate"
    set frontmost to true
    tell menu bar 1
    tell menu "File"
    click menu item "New Note Pad"
    end tell
    tell menu "Speech"
    click menu item "Microphone On"
    end tell
    end tell
    end tell
    tell process "Finder"
    key down {command, shift}
    keystroke "z"
    key up {command, shift}
    end tell
    tell process "MacSpeech Dictate"
    set frontmost to true
    end tell
    end if
    end tell
    -------

  • Question on "who" command in Unix

    Dear all,
    I am accessing a Unix (Solaris 10)  host via putty. I login as root and I execute the who command.
    I get an output like the below
    root       pts/2        Jan 22 08:16    (423t51j.virago.internal.uk)
    where 423t51j is the network name of my PC
    Hours later, I connect from the same PC with putty and execute "who" but the terminal name appears different
    root       pts/2        Jan 22 11:16    (423t51j.finance.local)
    Any ideas where this is set and how I can make it stay with the correct network name (which is the second , finance.local )
    Many thanks
    Andreas

    This is probably pulled from the your DNS server based on your incoming address (or maybe your hosts file if DNS is unreachable). Have you tried running the 'who' command several times to see if this changes?
    Just a thought.
    J. Haynes
    Denver, CO

  • Questionable System Events commands

    Are *key down* (key name) and *key up* (key name) legitimate "System Events" commands? I'm probably blind, but I don't find them in the System Events dictionary -- and yet they work, with dangers.
    For example:
    tell application "System Events"
    key down command
    display dialog "Computer will act as if command key is
    depressed until dialog is dismissed. (Dialog acts as
    a script delay until dismissed.)"
    key up command
    end tell
    But if anything prevents the script from reaching *key up command*, the only way I've
    found to escape the "key down" mode (and a great deal of weirdness) is a restart. (This
    may be reason enough to omit the commands from the dictionary.)
    Is there any other escape approach? Are there other dangers with these commands?
    Otherwise, I find them useful.

    More:
    The script I posted initially works as described on PPC version of 10.4.11, Intel Version of 10.4.11, 5.1.8, and 6.1.2 -- I've verified all of those.
    No freezes occur, but there are all kinds of things that don''t work if the command key is depressed. If the script fails to execute to the "key up command" command (say, due to an error), then the key remains "depressed," and all this weird behavior persists. I've tried everything I can think of to escape, but nothing has yet worked -- including force quitting anything. But restarting does undo the situation.
    (One escape approach I haven't yet tried is this: beginning after any "key down command" command and up to the "key up command" command, enclose everything in a try block and specify on error to "key up command." That might work, we'll see.)
    As to usefulness, the first thing I used it for was to make it easier for a user to make multiple selections in an open window -- no need to hold the command button down while clicking on items. I'm confident that it will be useful in a number of situations.

  • Question about the command "ip unnumberd loopback0"

    Hello there!
    Could you share your experience with me?
    When I access to RAS from my PC through dialup connection, I get ip addresses of my ppp interface and nexthop.
    I wanted to know how the process was going on in the RAS. So I checked the configuration on the cisco web site.
    interface loopback 0
    ip address 192.168.1.1 255.255.255.0
    interface async1
    ip unnumbered loopback 0
    peer default ip address pool asyncpool
    router eigrp 100
    network 192.168.1.0 0.0.0.255
    network 10.1.0.0 0.0.255.255
    ip local pool asyncpool 192.168.1.2 192.168.1.254
    From the above, the RAS is configured for both async interface on RAS side and loopback interface to be assigned the same ip address as well as the two networks (async ppp and loopback) belong to the same ip network subnet.
    What's happening in the routing table of the RAS? How can the two different interfaces have the same ip address?
    I don't have any RAS. I can't check them out. Please help me with some advice.

    Thanks for your input!
    Could you help me one more?
    When the command "peer defaul ip address pool ciscopool" is configured on an async interface of RAS, which protocol is actually resposible for delivering an ip address to a client PC?
    I guess it could be ppp because there is no alternative. If it is ppp, which field of ppp packet is for the delivery function? I've never heard of this function in ppp.
    Thanks!

  • Question about comment command

    I have to update comments on a lot of tables. I want to only update date them when the field is null.
    Does anyone know how this can be accomplished?
    I want something like COMMENT ON COLUMN TEST.REPORTS.ID IS 'Primary Key' where TEST.REPORT.ID IS NULL;
    Howard

    >
    I have to update comments on a lot of tables. I want to only update date them when the field is null.
    Does anyone know how this can be accomplished?
    I want something like COMMENT ON COLUMN TEST.REPORTS.ID IS 'Primary Key' where TEST.REPORT.ID IS NULL;
    >
    While adding comments can definitely be valuable I would suggest you take a different approach.
    1. Add comments at the table level first. The ALL_TAB_COMMENTS view lists OWNER, TABLE_NAME, TABLE_TYPE, COMMENTS. Then for column level comments it is the ALL_COL_COMMENTS view with OWNER, TABLE_NAME, COLUMN_NAME, COMMENTS.
    http://docs.oracle.com/cd/B28359_01/server.111/b28320/statviews_2092.htm#sthref1463
    2. Prioritize the tables you add comments to. Focus first on your most important key tables and columns. Adding comments to those will be more immediately useful than a shotgun approach to try to add comments to all tables and columns. Most environments have hundreds or thousands of tables so take care of the important ones first.
    3. A simple way to get started on your task is to create your own tables that are clones of the system views
    create table my_tab_comments as select * from user_tab_comments; -- or from ALL_TAB_COMMENTS with/without OWNER='SCOTT' e.g.
    create table my_col_comments as select * from user_col_comments
    alter table my_tab_comments add (modified_date date default sysdate)
    alter table my_col_comments add (modified_date date default sysdate)These tables become your working data and every record has a date.
    If you use a GUI like Oracle's free sql developer tool you can easily update the COMMENTS columns that are null and update the MODIFIED_DATE accordingly. You can also see the existing comments and perhaps update them if necessary.
    When you are ready to apply your changes use a script similar to what sb92075 has posted to extract the data from YOUR tables and create ALTER statements that will apply your comments.
    You can easily modify the script to apply just one table at a time if you want.
    By using your own work tables you make it easier to see what comments have already been written and to do the update is smaller, more manageable pieces. You can also let other developers comment their own tables so one person doesn't have to do it all.
    If you add new tables to a schema later it is easy to write a query to add them to your custom tables and create comments.
    When the project is finished you can either export your MY_TAB_COMMENTS and MY_COL_COMMENTS tables to a delimited, or Excel, file or create a big script to put into your version control system.
    That way you won't have to repeat the process later.

  • Maxl Question regarding set command

    I'm trying to set a variable in a MaxL script. The variable would reflect a path. However when I am trying use it in the script, it just ignores everything in the script after the statement.Here's what I tried:set file_path='c:\hyperion\essbase\scripts\';spool on to $file_path'Logfile.txt';It just treats it the first statement never was terminated.Help!Thanks,Jeff BaumertCitizens Communications

    Howdy!You will actually need to set the variable in the corresponding .BAT/.CMD file and pass the variables to the .MSH when you call the script for them to be usable.JR

Maybe you are looking for