Hello,
I need to display flash on incoming ringing. What I've already done is handling ringing in RunL handling NotifyStatusChange. Animation rendering is not an issue too. However when incoming call occurs Telephone application becomes active (displaying caling phone number, etc.) Please advice how can I make my application still active (foreground) and/or become foreground instead on Telephone.Please advise
my code is
Code:void CTelObserver::RunL() { if (iStatus == KErrNone) { CTelephony::TCallStatus status = iCallStatus.iStatus; switch (status) { case CTelephony::EStatusRinging: { Cancel() ; TThreadId id; RApaLsSession ls; User::LeaveIfError(ls.Connect()); CleanupClosePushL(ls); _LIT(KLitSwfFileToLaunch,"C:\\Data\\Images\\A.swf"); //this is the private directory of your application TFileName fileName(KLitSwfFileToLaunch); RFs aFs; User::LeaveIfError(aFs.Connect()); CleanupClosePushL(aFs); User::LeaveIfError(aFs.ShareProtected()); RFile flashFile; User::LeaveIfError(flashFile.Open(aFs,fileName, EFileShareReadersOrWriters )); CleanupClosePushL(flashFile); TInt succ = ls.StartDocument(flashFile,id,NULL); CleanupStack::PopAndDestroy(3); aFs.Close(); flashFile.Close(); break; } default: { // Not interested in other events. break; } } // Start listening for the next call StartListening(); } }





