×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    26

    Red face How can I get the layout of the foreground application?

    My application runs at background. Is there any way to get the layout of the foreground application? I want to know if it is portrait or landscape. Thanks a lot for the experts.

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

    Re: How can I get the layout of the foreground application?

    You could try using the Screendevice and getting the screen values with it.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    26

    Re: How can I get the layout of the foreground application?

    Quote Originally Posted by symbianyucca View Post
    You could try using the Screendevice and getting the screen values with it.
    Hi, Yucca, thanks a lot for your reply. Actually, I am using ScreenDevice to get the screen size. But it's not accurate. For example, my application supports landscape and runs at background. When it is in landscape mode, the screen size which is got from ScreenDevice is 640*360(width*height). But the foreground app only supports portrait mode. When I draw something on the screen, it is drawn as portrait mode. If I put a sprite on the position that x coordinate is larger than 360, it can not be seen. As the screen size I got is (640*360), I thought it was in the screen. But it's not because the foreground app is in portrait mode. So I just want to know the layout of the foreground app. The ScreenDevice is only useful when my app is in at foreground.

Similar Threads

  1. How to get the foreground color of the current theme ?
    By Derry_yu in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-03-04, 02:36
  2. Replies: 4
    Last Post: 2008-11-14, 11:22
  3. Replies: 1
    Last Post: 2006-10-16, 20:03
  4. Replies: 1
    Last Post: 2002-05-10, 18:56

Posting Permissions

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