Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User nunomorais's Avatar
    Join Date
    Mar 2003
    Posts
    10
    This code works on the simulator but not in the device, any idea why?
    It allways calls EPhotomailCmdAppTakePic event even when the grip is closed.

    void CPhotoMailAppUi::ConstructL()
    .
    .
    .
    SysUtil::GenerateGripEvent();
    }


    TKeyResponse CPhotoMailAppUi::HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode /*aType*/)
    {
    TInt code = aKeyEvent.iCode;

    switch(code)
    {
    case EKeyOK:
    {
    if(!iCameraIsOn)
    {
    if((!Initializing) && (!isGripClosed))
    {
    HandleCommandL(EPhotomailCmdAppSetCamOn);
    return(EKeyWasConsumed);
    }
    }
    else
    {
    HandleCommandL(EPhotomailCmdAppTakePic);
    return(EKeyWasConsumed);
    }
    break;
    }
    case EKeyGripClose:
    {
    isGripClosed = ETrue;
    return(EKeyWasConsumed);
    break;
    }

    default:
    break;
    }

    void CPhotoMailAppUi::HandleCommandL(TInt aCommand)
    {
    switch ( aCommand )
    {

  2. #2
    had you find out how EKeyGripClose and EKeyGripOpen work on the device!? I hade the same error it works fin on emulator but not on rael device...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved