×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    1

    Low Level implemenation using Commands(High Level API) is this possible

    I want to use Commands(High Level) and low level API create a soft key. So i can have greater control over the look and feel of the soft keys.

    Is it possible to stop the operating system drawing its own soft keys when using
    the Commands part of the High Level API. And if this is does anybody know how it would be implemented

    All feed back would be appreciated.

    Thanks

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Low Level implemenation using Commands(High Level API) is this possible

    Using high-level APIs you do not have control (or have very little control) over how things are rendered on the screen. So you need to use low-level UI to achieve what you are looking for (use Canvas or GameCanvas and draw the softkeys in there).

    Hartti

  3. #3
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Low Level implemenation using Commands(High Level API) is this possible

    Hi shanemurphy30,

    "I want to use Commands(High Level) and low level API create a soft key. So i can have greater control over the look and feel of the soft keys."
    Hartti is right and when using the MIDP high-level API the implementation is responsible for all the rendering tasks.

    But I am not sure about your question, I mean what you were talking about. When using a javax.microedition.lcdui.Canvas you can still attach Commands to it (addCommand, removeCommand, setCommandListener). Besides, note it's available only on standard MIDP Canvas and not for Nokia UI API FullCanvas, when using FullCanvas Commands are not allowed (from its javadocs - Throws IllegalStateException. Commands are not possible in FullCanvas.)

    Hope this helps!
    Juarez Alvares Barbosa Junior - Brazil

  4. #4
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: Low Level implemenation using Commands(High Level API) is this possible

    you can't have both high level commands and low level look and feel on the soft keys.

    you have, as said, two options :
    - low level, _not_ fullscreen mode, with high level commands (which commands will have high level look and feel)
    - low level, fullscreen mode, low level 'commands', that you have to implement fully (graphics and behaviour)

  5. #5
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Low Level implemenation using Commands(High Level API) is this possible

    "you can't have both high level commands and low level look and feel on the soft keys."
    Yes, of course, you're right. Please forgive me if I sounded the opposite, what I wanted to say is that you can use Commands with Canvas (not just keyPressed, etc), but no low level look and feel, as already pointed by Hartti, that's it

    Best,
    Last edited by juarezjunior; 2007-01-23 at 16:49.
    Juarez Alvares Barbosa Junior - Brazil

Similar Threads

  1. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 30
    Last Post: 2014-07-15, 05:44
  2. Low level and High Level User Interface....?
    By MitchDoan in forum Mobile Java General
    Replies: 8
    Last Post: 2009-03-31, 16:53
  3. Detecting battery level with Javaphone API
    By cassioli in forum Mobile Java General
    Replies: 17
    Last Post: 2007-03-19, 20:16
  4. Implementing T9 using low level api
    By lavanya_sep in forum Mobile Java General
    Replies: 0
    Last Post: 2005-07-29, 07:56
  5. Text input using low level api
    By norrissmith in forum Mobile Java General
    Replies: 4
    Last Post: 2002-08-26, 08:53

Posting Permissions

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