×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    34

    usage of Command problem

    Hi guyz,

    I have got a problem using command when i add two ie(yes and no) command for the alert i get extra "options" command in nokia.Inside the "option" command i get the "no" command.But for "yes" command it works fine.What should i do in order to remove the "options" command i think it comes as default.So what should i do.Sorry if my english is not good.

    Thanks in advance
    vignesh

  2. #2
    Registered User
    Join Date
    Mar 2008
    Posts
    17

    Re: usage of Command problem

    I think the option is displayed because of Command type.

    Check out how you construct your "no" and "yes" Commands. I think if you use types: Command.BACK, Command.CANCEL or Command.EXIT for the "no" Command it should not display under option menu.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    34

    Re: usage of Command problem

    hi i used (no = new Command("no",Command.EXIT,1) .Still its not working for few of the mobiles. how to make it compatible to all mobile.

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    17

    Re: usage of Command problem

    Did you try the other "negative" types?

    Some devices might always do the "options" and it cannot be disabled. I'm not sure but changing the priority might affect also how the Commands are displayed for the Alert. Try to set the priority to zero for both Commands. Use a negative type for "no" and Command.OK or such "positive" type for "yes" Command. Sorry I can't help further. Just try different types and priorities for the Commands and see if you can get them to work.

  5. #5
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: usage of Command problem

    Quote Originally Posted by vigneshkrish View Post
    hi i used (no = new Command("no",Command.EXIT,1) .Still its not working for few of the mobiles. how to make it compatible to all mobile.
    change the priority of no command from 1 to 2. set priority 1 for yes command.
    thanks,
    jitu_goldie..

    KEEP TRYING..

  6. #6
    Super Contributor
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546

    Re: usage of Command problem

    Quote Originally Posted by jitu_goldie View Post
    change the priority of no command from 1 to 2. set priority 1 for yes command.
    As per MIDP 2.1 documentation, priorities of Commands with different Command Type is never compared

  7. #7
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: usage of Command problem

    Quote Originally Posted by vigneshkrish View Post
    Hi guyz,

    I have got a problem using command when i add two ie(yes and no) command for the alert i get extra "options" command in nokia.Inside the "option" command i get the "no" command.But for "yes" command it works fine.What should i do in order to remove the "options" command i think it comes as default.So what should i do.Sorry if my english is not good.

    Thanks in advance
    vignesh
    on which device r u testing ur application. sometimes it depends on device in case of high level API. the same problem also exists in sony ericsson. Is it ok with other handsets like of s60 devices.
    thanks,
    jitu_goldie..

    KEEP TRYING..

Similar Threads

  1. Voip Usage Battery Stats N95 8GB
    By rajil.s in forum VoIP
    Replies: 0
    Last Post: 2008-12-07, 18:55
  2. helping my symbian server take more CPU usage
    By loquendo in forum Symbian
    Replies: 3
    Last Post: 2008-11-24, 21:12
  3. Memory Usage more with S40 devices
    By muralidharvvk in forum Mobile Java General
    Replies: 6
    Last Post: 2008-06-03, 08:23
  4. Usage of hardware video decoder on N93/N95
    By sgrohn in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-04-17, 08:39
  5. Battery Usage
    By mikebukhin in forum Symbian
    Replies: 2
    Last Post: 2006-10-08, 23:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×