×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    10

    7650 grip open and close

    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
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    125
    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
  •  
×