You Are Here:

Community: Developer Discussion Boards

#1 Old usage of Command problem - 2009-04-09, 09:19

Join Date: Mar 2009
Posts: 34
vigneshkrish
Offline
Registered User
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
Reply With Quote

#2 Old Re: usage of Command problem - 2009-04-09, 09:42

Join Date: Mar 2008
Posts: 17
Krapula's Avatar
Krapula
Offline
Registered User
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.
Reply With Quote

#3 Old Re: usage of Command problem - 2009-04-09, 09:45

Join Date: Mar 2009
Posts: 34
vigneshkrish
Offline
Registered User
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.
Reply With Quote

#4 Old Re: usage of Command problem - 2009-04-09, 09:57

Join Date: Mar 2008
Posts: 17
Krapula's Avatar
Krapula
Offline
Registered User
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.
Reply With Quote

#5 Old Thumbs up Re: usage of Command problem - 2009-04-09, 18:43

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
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..
Reply With Quote

#6 Old Re: usage of Command problem - 2009-04-09, 19:06

Join Date: Jan 2008
Posts: 533
Location: Amravati, India
arpit2agrawal
Offline
Super Contributor
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
Reply With Quote

#7 Old Thumbs up Re: usage of Command problem - 2009-04-10, 06:38

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
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..
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Voip Usage Battery Stats N95 8GB rajil.s VoIP 0 2008-12-07 19:55
helping my symbian server take more CPU usage loquendo General Symbian C++ 3 2008-11-24 22:12
Memory Usage more with S40 devices muralidharvvk Mobile Java General 6 2008-06-03 09:23
Usage of hardware video decoder on N93/N95 sgrohn Symbian Media (Graphics & Sounds) 2 2007-04-17 09:39
Battery Usage mikebukhin Python 2 2006-10-09 00:10

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia