×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    83

    App does not start fullscreen on Nokia 5800

    My app does not start fullscreen on Nokia 5800. It starts as a blackscreen with two soft buttons - 'Options' and 'Exit', then after pressing 'Options' the apps runs ok in the fullscreen mode.
    This happens only on Nokia 5800. The same code starts correctly on the simulator and on s60v3 Nokia N93.

    In .rss file there is
    Code:
    RESOURCE EIK_APP_INFO
        {
        menubar = r_menubar;
        cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
        }
    When I try to pass ENoAppResourceFile flag in my appui class (inherited from CAknAppUi) method BaseConstructL(), the app crashes.

    Just don't know where to look for.

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    83

    App does not start fullscreen on Nokia 5800

    My app does not start fullscreen on Nokia 5800. It starts as a blackscreen with two soft buttons - 'Options' and 'Exit', then after pressing 'Options' the apps runs ok in the fullscreen mode.
    This happens only on Nokia 5800. The same code starts correctly on the simulator and on s60v3 Nokia N93.

    In .rss file there is
    Code:
    RESOURCE EIK_APP_INFO
        {
        menubar = r_menubar;
        cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
        }
    I tried calling BaseConstructL() (in my CAknAppUi-inherited class) with ENoAppResourceFile flag - still a failure.

    Just don't know where to look for.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: App does not start fullscreen on Nokia 5800

    What code are you using to make the app fullscreen?

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    83

    Re: App does not start fullscreen on Nokia 5800

    Quote Originally Posted by david.caabeiro View Post
    What code are you using to make the app fullscreen?
    Code:
    void CTestAppUi::ConstructL()
    {
        BaseConstructL( /*ENoScreenFurniture | ENoAppResourceFile |*/ EAppOrientationPortrait );
        iAppContainer = new (ELeave) CTestContainer;
        iAppContainer->SetMopParent(this);
        iAppContainer->ConstructL( TRect( TPoint(0,0), TSize( 360, 640 ) ) );
        AddToStackL( iAppContainer );
    }
    then in container class
    Code:
    void CTestContainer::ConstructL(const TRect& aRect)
    {
        CreateWindowL();
        iRender = CDirScrAccEng::NewL(iEikonEnv->WsSession(),*(CCoeEnv::Static()->ScreenDevice()), 
    					           Window(), EFalse );
        SetExtentToWholeScreen();
        ActivateL();
        EnableDragEvents();
    }
    Last edited by mstream; 2009-01-26 at 13:40. Reason: added code

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: App does not start fullscreen on Nokia 5800

    And are you sure about that you actually render something? Can it happen that simply your DSA is not started?

  6. #6
    Registered User
    Join Date
    Apr 2008
    Posts
    83

    Re: App does not start fullscreen on Nokia 5800

    Quote Originally Posted by wizard_hu_ View Post
    And are you sure about that you actually render something? Can it happen that simply your DSA is not started?
    It renders ok, but only after I press 'Options' button. I just do not understand why these 'Options' and 'Exit' buttons are created and drawn at all, are they from resources? If yes, does the flag ENoAppResourceFile disable them? It seems no.

    Updated.
    Thanks to all, the problem is solved now
    Last edited by mstream; 2009-01-26 at 15:32. Reason: Solved

  7. #7
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: App does not start fullscreen on Nokia 5800

    Quote Originally Posted by mstream View Post
    Updated.
    Thanks to all, the problem is solved now
    Please feel free to share the solution if you want. It will help someone having a similar issue in the future, and will make this thread more profitable.

  8. #8
    Registered User
    Join Date
    Apr 2008
    Posts
    83

    Re: App does not start fullscreen on Nokia 5800

    Just simple.
    It was necessary to override ResourceFileName() so that it returns an emtpy file name (in the application class)
    Code:
    TFileName CTestApplication::ResourceFileName() const { return TFileName(); }
    Without that the flag ENoAppResourceFile does not work.

  9. #9
    Registered User
    Join Date
    Aug 2007
    Posts
    41

    Re: App does not start fullscreen on Nokia 5800

    Just a small tip: I think it's not right to hard-code screen resolution values. It's better to use generic ways of making full-screen application.
    Please, look here http://wiki.forum.nokia.com/index.ph...de_on_touch_UI
    Last edited by Damavik; 2009-01-27 at 09:16.

Similar Threads

  1. ###Upgrading Firmware###
    By zahid44 in forum General Development Questions
    Replies: 27
    Last Post: 2008-10-21, 07:17
  2. Nokia Mobile VPN Client
    By marcyl in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2003-12-01, 14:47

Posting Permissions

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