×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Sri Lanka, Colombo
    Posts
    204

    Red face [moved] FullScreen mode

    hi guys,

    when i develop a j2me application using high level design every time when i execute it the MIDlet name appears on top of the Screen and the other phone icons.

    which is bad.

    is there a way to set the full screen mode in high level design????

    regards,
    Randika

  2. #2
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: FullScreen mode

    afaik that is not possible...
    it's only an option within the Canvas, so u should write ur whole app using Canvas(es), because as long as u use the inbuilt high level items those icons/information will remain visible...

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Sri Lanka, Colombo
    Posts
    204

    Red face Re: FullScreen mode

    hi Tiger79,
    i have created a it like that. but when i set the fullscreenMode(true) it doesn't work can anyone help me in this case???
    this is the code

    public class LowLevel extends Canvas {

    private Display display;

    public LowLevel(Display display) {
    this.display = display;
    setFullScreenMode(true);

    // display.setCurrent(this);
    }

    private Image loadImage(String name) {
    Image image = null;
    try {
    image = Image.createImage(name);
    } catch (IOException ex) {
    ex.printStackTrace();
    }
    return image;
    }

    public Form loginForm() {
    Form loginFrm = new Form("");
    Image image = Image.createImage(loadImage("/res/identity.png"));
    loginFrm.append(image);
    TextField userName = new TextField("", "", 10, TextField.ANY);
    loginFrm.append(userName);

    display.setCurrent(loginFrm);
    return loginFrm;
    }
    protected void paint(Graphics arg0) {

    }
    }

  4. #4
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: FullScreen mode

    lol,
    thats the same code as in http://discussion.forum.nokia.com/fo...d.php?t=130172

    anyways where are u showing the canvas itself in ur code ?
    I only see a "display.setCurrent(loginFrm);" which obviously will set the Form as the current displayable...

  5. #5
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Sri Lanka, Colombo
    Posts
    204

    Red face Re: FullScreen mode

    hi Tiger79,

    i'm the one who started that thread too. any way i also know that this will be override but what should i do abut this????


    my question is

    i can do this stuff using High Level

    then the thing is form will not be applied to full screen.


    if i do it using Low level

    then i can set the full screen but in this case it won't happen.


    so i think you got my point
    what should i do

    kind regards,
    Randika

  6. #6
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: FullScreen mode

    If u use high level u will have to live with how these high level GUI's have been implemented...
    If u'd like a Form (or textField) in a fullscreen u will have to implement it using low level graphics...
    Which means u will have to draw everything on ur screen... Fortunately u dont have to actually draw i with a pen or marker on the screen, but u can do that programmatically... Specifically u can draw on the Canvas (which is a primitive class)... This Canvas has a setFullScreenMode() method...

    So u as far as I understand from what ur saying u made a Form, and a Canvas with full screen enabled... The u try to call the Form from within ur canvas and hope the form will be shown fullscreen ?
    If that is the case, and I strongly beleieve that, then u should definitely read a little about MIDP 2.0 and j2me in general, most specifically this article :
    http://today.java.net/pub/a/today/20.../midletUI.html

    Read it, and try to understand what i meant with :
    "I only see a "display.setCurrent(loginFrm);" which obviously will set the Form as the current displayable..." (instead of the Canvas that is)

  7. #7
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: [moved] FullScreen mode

    Randika,

    You are going down a dead-end here.

    Displayable objects fall into two categories:

    High Level

    • Form, List, TextBox
    • Do not work Full Screen
    • Give you very limited control over appearance


    Low Level

    • Canvas
    • You must draw everything yourself
    • You must handle all input yourself (keyPressed, keyReleased, etc)
    • Have Full Screen mode
    • Full Screen mode is supported in MIDP2 only
    • "Full Screen" is not always the entire screen - for example, on Motorola devices, you will still see the status bar at the top (signal, battery, etc.)


    You can display only one Displayable object. You cannot mix them. You cannot mix high and low level at the same time.

    You have three options:

    1. Use the High Level UI, and accept how it looks.

    2. Create subclasses of Canvas to build your own UI from scratch.

    3. Use a library (like J2ME Polish), which has ready-made Canvas subclasses.

    There is no fourth option.

    Cheers,
    Graham.

  8. #8
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: [moved] FullScreen mode

    thx graham, u saved me a lot of typing :P also the information ur giving is very well formulated and precise...
    Still he might first go through some documentation so he'll be able to understand why what he's trying to do is not feasable...

  9. #9
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Sri Lanka, Colombo
    Posts
    204

    Thumbs up Re: [moved] FullScreen mode

    hi guys,

    thanks a lot guys
    regards,
    randika

Similar Threads

  1. Fullscreen mode of Sagem my700x
    By esunilkumare in forum Mobile Java Games
    Replies: 20
    Last Post: 2008-11-24, 08:53
  2. [moved] How to use compatibility mode in s60 5.0
    By punxism in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-10-13, 05:30
  3. [Moved] I Can't fix "Flash OFF" mode on E71 Camera
    By gsmhero in forum General Development Questions
    Replies: 1
    Last Post: 2008-08-07, 02:21
  4. some query about fullscreen mode
    By kishore84 in forum Symbian
    Replies: 3
    Last Post: 2008-03-14, 13:11
  5. 6670 fullscreen video mode
    By asrap in forum General Development Questions
    Replies: 2
    Last Post: 2005-05-03, 14:19

Posting Permissions

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