×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    May 2010
    Location
    Egypt
    Posts
    433

    Question How can I get the layout of the foreground application?

    My question was asked 2 years ago by another member: http://www.developer.nokia.com/Commu...nd-application

    But there was no answer, and as I'm facing the same problem I hope someone managed to find a solution for it:

    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.

    My best regards, and many thanks in advance.
    Nokia Asha applications [Price Point Policy] [Unlimited Updates] [Suggestions]: http://www.developer.nokia.com/Community/Discussion/showthread.php?240423-Nokia-Asha-applications-Price-Point-Policy-Unlimited-Updates-Suggestions

  2. #2
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

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

    Hello,
    I've found this qt implementation:
    http://qt.gitorious.org/qt-component...n_p_sensor.cpp (line 99)

    could it be useful?

    regards,
    pg

Similar Threads

  1. How can I get the layout of the foreground application?
    By enby416 in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-04-25, 11:21
  2. How to know foreground application
    By rkmohanty in forum Symbian
    Replies: 2
    Last Post: 2008-09-01, 06:26
  3. How can I keep Application always foreground
    By saiful_nokia in forum Symbian
    Replies: 5
    Last Post: 2008-07-15, 13:57
  4. Foreground Application
    By saiful_nokia in forum Symbian
    Replies: 1
    Last Post: 2007-01-24, 16:02
  5. How to know which application is in Foreground??
    By mfarooqkhan78 in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-10-04, 12:05

Posting Permissions

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