Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Super Contributor amit.mangal's Avatar
    Join Date
    Sep 2009
    Posts
    732
    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();
            }
        }
    Thanks & Regards
    Amit Kumar Mangal
    we can help each other and progress together
    http://amitmangal.blogspot.com/

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    what's wrong with the othrer thread: http://discussion.forum.nokia.com/fo...d.php?t=200376

  3. #3
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    Quote Originally Posted by amit.mangal View Post
    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
    Well! i also tried to bring flash lite player to foreground using Python & M-Shell 4 months back, using the same approach i.e bind a callback to the telephone call, if call is incomming, then find the flash player window name, bring this window to foreground.Let me tell u the results :
    1- It is not possible to bring Flash Player to foreground while u r in a call.I can confirm that the call to bring FL Player to foreground works fine coz when u end the call then u see that the FL Player is in foreground and m somewhat sure that same is the case with Symbian C++.
    2- The only thing that can come to foreground in a call is a TopWindow (in Python) or RWindow in Symbian C++ which can have images and text on its body but not Flash Lite content.
    Wish u luck..

    Best Regards,
    SajiSoft

  4. #4
    Super Contributor amit.mangal's Avatar
    Join Date
    Sep 2009
    Posts
    732
    Hi yucca
    Some people are saying this is impossible.
    is it possible or impossible ?
    Thanks & Regards
    Amit Kumar Mangal
    we can help each other and progress together
    http://amitmangal.blogspot.com/

  5. #5
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    I don't know enough of Flash application's implementation to say whether it would be possible or not.

  6. #6
    Super Contributor amit.mangal's Avatar
    Join Date
    Sep 2009
    Posts
    732
    yucca this is not good i am querying here and you are giving me wrong answers and you don't knew the solution even you replied and waisted my 6 days this is not possible
    Thanks & Regards
    Amit Kumar Mangal
    we can help each other and progress together
    http://amitmangal.blogspot.com/

  7. #7
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    Sad that you see it that way, basically I did not give you wrong answers, I gave you options to try solving your problems. Basically with Research and development, you do need to try out different ways on solving problems, and some problems might be unsolveable. As some wise man said "I have not failed, I have found 10'000 ways that don't work". Anyway, if people here would only help on issues they are 100% sure would work in all possible situations, we would not see too many people answering here.

  8. #8
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    Hi Amit,
    I 100% agree with Yucca (he is really a great helping man with lots of knowledge).However, I already suggested u that it is not possible according to my tests but i will give it a go once again, tonight and lets c what i get. Thanks for your patience.

    Best Regards,
    SajiSoft

  9. #9
    Super Contributor amit.mangal's Avatar
    Join Date
    Sep 2009
    Posts
    732
    Sorry Yucca,
    I apologize for that please forgive me.
    you are right you gave me ideas and i learn a lot with your help i was very disappoint yesterday due to loss of project please forgive me.
    Thanks & Regards
    Amit Kumar Mangal
    we can help each other and progress together
    http://amitmangal.blogspot.com/

  10. #10
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    Hi Amit,
    I did few tests again with the same algorithm under m-shell (m-shell is a programming languages developed in Symbian C++) i.e
    1- Wait for a call
    2- If call is incoming, launch flash lite //it works but flash lite player doesnt launch in foreground when phone ringing
    3- Bring the player to foreground by API //it works but flash lite player doesn't come in foreground when phone ringing
    Therefore, m unsuccessful in implementing this feature and have a feeling that may be this feature is not available for Flash Lite.
    Conclusion:
    I think the OS gives Call Application priority over any other application. If i remember correctly, than Symbian C++ also allow to set priority for ur applications may be u can give it a try .

    Best Regards,
    SajiSoft

  11. #11
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    Quote Originally Posted by amit.mangal View Post
    Sorry Yucca,
    I apologize for that please forgive me.
    you are right you gave me ideas and i learn a lot with your help i was very disappoint yesterday due to loss of project please forgive me.
    No Harm done, I often blurt out things as they come to my mind... Hoping that the disappointment wont make you quit the nice world of mobile development.

  12. #12
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    Quote Originally Posted by sajisoft View Post
    I think the OS gives Call Application priority over any other application. If i remember correctly, than Symbian C++ also allow to set priority for ur applications may be u can give it a try .
    t
    The priority can be overwritten, been there done that, thus if the Flash player does not work, then I'm assuming it has internal coding putting it back to background, if there is active call on. Basically easy and wrong way on handling the "not-interrupting system stuff" that is one of the signing rules..

    At least in my opinion, the flash should just stop when a call comes in, and after that if user etc. wishes to put it into front or something else, users should be able to do that..

  13. #13
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    Quote Originally Posted by symbianyucca View Post
    The priority can be overwritten, been there done that, thus if the Flash player does not work, then I'm assuming it has internal coding putting it back to background, if there is active call on. Basically easy and wrong way on handling the "not-interrupting system stuff" that is one of the signing rules..

    At least in my opinion, the flash should just stop when a call comes in, and after that if user etc. wishes to put it into front or something else, users should be able to do that..
    Hi Yucca,
    You really wrote out some interesting points here. Thanks.

    Best Regards,
    SajiSoft

  14. #14
    Registered User shpe11's Avatar
    Join Date
    Jan 2007
    Location
    bucharest
    Posts
    222
    is like "why can't I put a .swf as background in homescreen?"...
    http://m.shpe.ro
    http://work.shpe.ro
    http://purchase.shpe.ro/iPics

  15. #15
    Super Contributor amit.mangal's Avatar
    Join Date
    Sep 2009
    Posts
    732
    Hi Symbian yucca
    i found some thing here is the link can you please explain how is it playing flash
    http://www.jappit.com/blog/2008/10/0...th-kunerilite/
    Thanks & Regards
    Amit Kumar Mangal
    we can help each other and progress together
    http://amitmangal.blogspot.com/

Page 1 of 2 12 LastLast

Similar Threads

  1. [moved] phone not ringing?
    By nehasaxena in forum Symbian Media (Closed)
    Replies: 8
    Last Post: 2009-11-10, 12:01
  2. How do you set the policy file for Flash Player on n810
    By intomo in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2009-01-26, 18:32
  3. Caller ID While Phone is ringing
    By S.S.Sudhakar in forum Symbian C++
    Replies: 0
    Last Post: 2004-09-01, 11:12
  4. Can i detect a phone ringing on other phone from my bluetooth
    By alice77 in forum General Development Questions
    Replies: 0
    Last Post: 2003-12-26, 07:19

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