×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    93

    Force portrait screen in CWsScreenDevice from executable (service)

    hi all,
    i've create a background service (exe/console program) which draw to screen using CWsScreenDevice and other related classes. however, there are two problems:

    1. how to detect the rotation of screen? currently, if the exe start when screen is portrait, it will always draw in a portrait resolution (240x320) even the screen is rotated (such as by the sensor in N82)

    2. how can i force the screen device always use portrait (240x320) even the sensor is on? It is easy to do with CAknAppUi or CAknViewAppUi but hard in exe?

    I tried using the methods in CWsScreenDevice and the only thing I can do is to force it run in 240x320 but screen is 320x240. that means, the only visible is the upper left corner 240x240.

    I want to do it such that:
    1. the drawing will always on portrait screen
    2. even the system screen is rotated while my exe is running,
    a) my exe still run full screen in 240x320
    b) the screen won't go blank for a second.

    thanks a lot for your help.

    Luke

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: Force portrait screen in CWsScreenDevice from executable (service)

    Hi,

    the SetScreenSizeAndRotation() method does not help? You should probably capture the event EEventScreenDeviceChanged also.

    BR
    STeN

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    93

    Re: Force portrait screen in CWsScreenDevice from executable (service)

    Hi STen,
    Thanks for your reply.
    SetScreenSizeAndRotation is not working. What happens now is, if the phone is in landscape mode, the exe will still only draw graphics in portrait BUT the screen does not go back into portrait. Thus, the area it show is the top left 240x240. The lower part of my graphics cannot show. and the right part of screen shows the last app I opened.

    Any method that I can have my EXE draw graphics just like when we call "SetOrientationL( EAppUiOrientationPortrait )" in CAknAppUi?

    Thanks.

  4. #4
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: Force portrait screen in CWsScreenDevice from executable (service)

    hello,

    I am now facing the same problem.


    Is there already any solution to detect the rotation of screen without using UI (in an exe)?


    thanks


    Regards,

    Pai
    Symbian && Android && iPhoneOS

  5. #5
    Registered User
    Join Date
    Sep 2010
    Posts
    5

    Re: Force portrait screen in CWsScreenDevice from executable (service)

    Bump!

    I too am facing the same problem! Any ideas?

Similar Threads

  1. Replies: 4
    Last Post: 2006-09-05, 15:15
  2. interpretation for this service record
    By chan_fookmun in forum Symbian
    Replies: 1
    Last Post: 2006-04-25, 18:13
  3. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24
  4. Service Registration question
    By asmatic in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-21, 10:04
  5. Service Discovery
    By jimdeal in forum Bluetooth Technology
    Replies: 1
    Last Post: 2003-09-25, 09: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
  •  
×