×

Discussion Board

Results 1 to 5 of 5

Thread: screen size

  1. #1
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Amman/Jordan
    Posts
    322

    screen size

    Hello people ..

    is there a way to know the actual screen size ..???
    am using a form

  2. #2
    Regular Contributor
    Join Date
    Sep 2006
    Location
    Delhi
    Posts
    77

    Re: screen size

    Form.getWidth() and Form.getHeight()

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: screen size

    Basically if you want to get your windows size, the previous codes would work. But if you want to get the actual screen-size of the device you could use functions provided by the screendevice, you could get a instance of the screendevice by using CEikonEnv::Static().

    yucca

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

    Re: screen size

    yes.
    but probably not in java ...

    there are two approches for this : it can be dynamical, or statical.
    in a dynamical way, you'll check getHeight, and getWidth.
    Yet, there might be some issues if you go full screen.
    in a statical way, you can use some precompilation and include the size of your target screen. People like J2ME polish have a huge base of devices with the screen size and full screen size of each of them.

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: screen size

    Thanks... I was checking this from the "new posts" and missed completely that it was under Java, gotta focus a bit more, I quess...

    yucca

Similar Threads

  1. Size invalid on screen switch
    By Klaim in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-08-22, 11:20
  2. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15
  3. Replies: 0
    Last Post: 2006-03-01, 11:25
  4. Screen size
    By mshita in forum Mobile Java General
    Replies: 1
    Last Post: 2004-05-12, 11:22
  5. Screen Saver & MMS viewer SIZE
    By fabiolee in forum General Development Questions
    Replies: 0
    Last Post: 2003-08-26, 07:41

Posting Permissions

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