Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command Type

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems to me that the Command Type like BACK, STOP, EXIT... don't have any control or default behavior, except they may only have the device dependent soft-key mapping for the Command Type. But nothing for the implementation. So I can use the "STOP" type to implement the start action, or "EXIT" to implement the "OK" action. Sounds ridiculous, but it's possible. Correct me if I am wrong.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right. They are device-dependent implementation...
 
Chris Gastin
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alibabra , This is what I have noticed as well.
 
Sathya Srinivasan
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is quite true.

Since the way a command is represented in a device is device-specific, due to the varied implementations, I guess the creators wisely chose a Command object along the lines of the classical COMMAND pattern.

As per the spec and javadoc, the intention of the constants is to 'suggest' to the device on which position to place the command (aka button). In many phones, the Exit button always is placed on the right-side and the menu button is always placed on the left side.

So, if you want your users to feel comfortable with your application, you should use the appropriate constants to ensure that the commands of your application are placed in appropriate places where the users are used to seeing those commands. If you defy them and use them willy-nilly, while it might amuse you, it might not amuse your users

The priority value, on top of the constants, can be used to decide the relative position of the command (highest priority button more accessible than the lowest priority button) to help in usability.

I guess these are unique considerations for a screen-restricted device such as a cell phone where screen space is at a premium.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic