×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    softkeys should be disable while displaying splash screen

    Hi,

    I am able to show the splash screen on my device...
    I need to show this splash screen before it launches my listbox, where this listbox contains LSK & RSK as options->command1,command2... & Exit.

    If I press LSK or RSK while it is displaying splash screen, then also am able to see the options->command1,command2....

    which should not happen...

    How can I disable the softkeys while displaying splash screen ?

    please help...
    Regards,
    Sunitha.M

  2. #2
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: softkeys should be disable while displaying splash screen

    can anyone please reply this.........
    Regards,
    Sunitha.M

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

    Re: softkeys should be disable while displaying splash screen

    Set your own command set in there, and remember to ignore the set commands in your command handling code. Anyway, you can not expect people to answer all threads in less than one hour, so next time please wait at least 24 hours before bumbing your query up..

  4. #4
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Re: softkeys should be disable while displaying splash screen

    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  5. #5
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: softkeys should be disable while displaying splash screen

    Quote Originally Posted by sunitha.m13 View Post
    Hi,

    I am able to show the splash screen on my device...
    I need to show this splash screen before it launches my listbox, where this listbox contains LSK & RSK as options->command1,command2... & Exit.

    If I press LSK or RSK while it is displaying splash screen, then also am able to see the options->command1,command2....

    which should not happen...

    How can I disable the softkeys while displaying splash screen ?

    please help...
    Hi Sunitha,

    Code:
    	CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
    	CleanupStack::PushL(cba);		
    	cba->SetCommandSetL(R_AVKON_SOFTKEYS_EMPTY);
    	cba->DrawNow();
    	CleanupStack::Pop();
    Set softkeys as empty while splash screen, after splash screen change with other resource, for ex: R_AVKON_SOFTKEYS_OPTIONS_BACK.

    Thanks,
    Eswar

  6. #6
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: softkeys should be disable while displaying splash screen

    I am using the splash screen from http://wiki.forum.nokia.com/index.ph...implementation

    I have called the splsh screen instance like this in AppUi class where I have 2 views:

    iSimpleSplashScreen = CSimpleSplashScreen::NewL();
    iSplashScrTimer = CPeriodic::NewL(CActive::EPriorityStandard);
    iSplashScrTimer->Start(2000000, 3000000, TCallBack(SplashScrTimerCallBack, this));

    iAppView1 = CMyXmlParserAppView1::NewL( ClientRect() );
    iAppView2 = CMyXmlParserAppView2::NewL( ClientRect() );
    AddViewL( iAppView1 );
    AddViewL( iAppView2 );

    SetDefaultViewL(*iAppView1);

    .rss file :

    RESOURCE AVKON_VIEW r_xmlparser_main_view
    {
    menubar = r_xmlparser_main_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }

    so, it is displaying splash screen & showing commands...

    Now, where should I call this CEikButtonGroupContainer ?

    I got some info from :http://wiki.forum.nokia.com/index.ph...ng_them_in_S60

    My TIMER "CPeriodic" is asynchronous, so again where should I call the cba->SetCommandSetL(R_AVKON_SOFTKEYS_OPTIONS_CANCEL);
    Regards,
    Sunitha.M

  7. #7
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: softkeys should be disable while displaying splash screen

    Hi,

    what SplashScrTimerCallBack will do? try to change in the callback function.

    Thanks,
    Eswar

  8. #8
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: softkeys should be disable while displaying splash screen

    Quote Originally Posted by eswar_illuri View Post
    Hi,

    what SplashScrTimerCallBack will do? try to change in the callback function.

    Thanks,
    Eswar
    TInt CMyXmlParserAppUi::SplashScrTimerCallBack(TAny* aParm)
    {
    ((CMyXmlParserAppUi*)aParm)->StopSplashScreen();
    return 1;
    }

    void CMyXmlParserAppUi::StopSplashScreen()
    {
    if(iSplashScrTimer)
    {
    delete iSplashScrTimer;
    iSplashScrTimer = 0;
    }
    if(iSimpleSplashScreen)
    {
    delete iSimpleSplashScreen;
    iSimpleSplashScreen = NULL;
    }
    //Add your code from here
    }
    Regards,
    Sunitha.M

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

    Re: softkeys should be disable while displaying splash screen

    Hi,

    Use below code in your splash screen ConstrutL()
    CMyXmlParserAppUi* iAppUi = reinterpret_cast<CMyXmlParserAppUi*>( CCoeEnv::Static()->AppUi());
    CEikButtonGroupContainer* cba = iAppUi->Cba();
    if ( cba != NULL )
    {
    cba->MakeVisible( EFalse );
    }
    add below code in your Destructor

    CEikButtonGroupContainer* cba = iAppUi->Cba();

    if ( cba != NULL )
    {
    cba->MakeVisible( ETrue );
    }
    Add below code in StopSplashScreen() not in AppUi's ConstructL()
    iAppView1 = CMyXmlParserAppView1::NewL( ClientRect() );
    iAppView2 = CMyXmlParserAppView2::NewL( ClientRect() );
    AddViewL( iAppView1 );
    AddViewL( iAppView2 );

    SetDefaultViewL(*iAppView1);
    Kind regards,
    mghasan

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

    Re: softkeys should be disable while displaying splash screen

    Quote Originally Posted by sunitha.m13 View Post
    iSimpleSplashScreen = CSimpleSplashScreen::NewL();
    iSplashScrTimer = CPeriodic::NewL(CActive::EPriorityStandard);
    iSplashScrTimer->Start(2000000, 3000000, TCallBack(SplashScrTimerCallBack, this));

    iAppView1 = CMyXmlParserAppView1::NewL( ClientRect() );
    iAppView2 = CMyXmlParserAppView2::NewL( ClientRect() );
    AddViewL( iAppView1 );
    AddViewL( iAppView2 );

    SetDefaultViewL(*iAppView1);
    You should not mix Views and containers in appui, it will never work well, so make a new view for your splash, or use containers only in your appui

  11. #11
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: softkeys should be disable while displaying splash screen

    Quote Originally Posted by mghasan View Post
    Add below code in StopSplashScreen() not in AppUi's ConstructL()
    according to your previous post 36 & 37: http://discussion.forum.nokia.com/fo...+screen&page=5

    StopSplashScreen() has been defined in AppUi, so now where should I define this ?
    Regards,
    Sunitha.M

  12. #12
    Registered User
    Join Date
    Aug 2007
    Posts
    74

    Re: softkeys should be disable while displaying splash screen

    Hi sunitha.m13,

    If you want to display Splashscreen before your main application's view, its best not to include your main applications view in AppUi constructL. Therefore I suggested to include your main application's view in StopSplashScreen().

    Thanks,
    mghasan

  13. #13
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: softkeys should be disable while displaying splash screen

    yes...now softkeys are not working..but my VIEW is not getting displayed....
    It shows nothing and no softkeys are working after that......
    Last edited by sunitha.m13; 2009-11-04 at 12:35.
    Regards,
    Sunitha.M

  14. #14
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: softkeys should be disable while displaying splash screen

    Quote Originally Posted by mghasan View Post
    Hi,
    Use below code in your splash screen ConstrutL()
    add below code in your Destructor
    Add below code in StopSplashScreen() not in AppUi's ConstructL()
    Kind regards,
    mghasan
    According to your suggestion,

    I have declared in SimpleSplashScreen.h file:
    CMyXmlParserAppUi* iAppUi;
    CEikButtonGroupContainer* cba;
    I called this in CSimpleSplashScreen::ConstructL()

    iAppUi = reinterpret_cast<CMyXmlParserAppUi*>( CCoeEnv::Static()->AppUi());
    cba = iAppUi->Cba();
    if ( cba != NULL )
    {
    RDebug::Print( _L("CBA FALSE") ); // Not coming inside if Loop
    cba->MakeVisible( EFalse );
    }

    I called this in CSimpleSplashScreen::~CSimpleSplashScreen() :

    cba = iAppUi->Cba();

    if ( cba != NULL )
    {
    RDebug::Print( _L("CBA TRUE") ); // Not coming inside if Loop
    cba->MakeVisible( ETrue );
    }
    Added this code in StopSplashScreen() :

    iAppView1 = CMyXmlParserAppView1::NewL( ClientRect() );
    iAppView2 = CMyXmlParserAppView2::NewL( ClientRect() );
    AddViewL( iAppView1 );
    AddViewL( iAppView2 );

    SetDefaultViewL(*iAppView1);

    but my VIEW is not getting displayed....
    It shows nothing and no softkeys are working after that......
    Regards,
    Sunitha.M

  15. #15
    Registered User
    Join Date
    Aug 2007
    Posts
    74

    Re: softkeys should be disable while displaying splash screen

    Hi,

    Have you added below code in StopSplashScreen()?
    iAppView1 = CMyXmlParserAppView1::NewL( ClientRect() );
    iAppView2 = CMyXmlParserAppView2::NewL( ClientRect() );
    AddViewL( iAppView1 );
    AddViewL( iAppView2 );

    SetDefaultViewL(*iAppView1);

Similar Threads

  1. how to disable screen darkening effect when no user response
    By js001 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2008-12-04, 13:38
  2. How to disable the screen Allow Access Network
    By ruhulcool1 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2008-04-23, 08:48
  3. Splash screen
    By xersmith in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2007-01-05, 08:24
  4. Problem displaying full screen on 6131
    By Paradox23 in forum Streaming and Video
    Replies: 0
    Last Post: 2006-10-30, 10:46
  5. Splash screen
    By RetroMoFo in forum Mobile Java General
    Replies: 2
    Last Post: 2003-05-28, 15:33

Posting Permissions

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