Discussion Board
-
7650 grip open and close
1970-01-01, 02:00
#1
Registered User
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 )
{
-
Regular Contributor
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
-
Forum Rules