Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor amol_benare604's Avatar
    Join Date
    Sep 2008
    Location
    Pune - India
    Posts
    378
    Hello friends
    I have developed an application for s60 5th edition devices.
    There is indicator icon I have putted on idle screen showing that the application is running in background.

    Now I want to bring my application to foreground by tapping on indicator icon...

    For that I have to detect touch event on desktop(idle screen) ...

    Can any body plz help me in this case?????

    I have searched on this and found that using Animation dll we can do that ... But I am not getting how to do that???

    Can anybody suggest me easiest way for this???

    Thanks and regards
    Amol

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    How excatly are you drawing the indicator, does it have a Window ?

  3. #3
    Regular Contributor amol_benare604's Avatar
    Join Date
    Sep 2008
    Location
    Pune - India
    Posts
    378
    Yes I have a window... I am drawing image in the 10x10 window...

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Then enable the touch events for the window, and start listening events for the RWSession, then when you get Run called, check teh event type.

  5. #5
    Registered User talk2mks's Avatar
    Join Date
    Dec 2008
    Posts
    113
    Hi Amol,

    Did you seen AknAppUi class function.....HandleWsEventL.?. In this function you check Pointer event(EEventPointer) or key event in background.

    For more info, Have look in SDK or Forum Nokia WIKI :-)
    Regards
    MKS

  6. #6
    Regular Contributor amol_benare604's Avatar
    Join Date
    Sep 2008
    Location
    Pune - India
    Posts
    378
    I checked by adding below code in that window for detecting the touch events

    Code:
    void CIndicatorIcon::HandlePointerEventL(const TPointerEvent& aPointerEvent)
    	{		
    	 // Remember to call base class implementation. Then your child controls
    	    // receive pointer events.
    	    CCoeControl::HandlePointerEventL(aPointerEvent);
    	 
    	    // Rest of your code 
    	    if (aPointerEvent.iType == TPointerEvent::EButton1Down)
    	        {
    	        // TODO: What to do when this ui control receives pen down event...
    	            TApaTask aThisTask(iEikonEnv->WsSession());
    		    aThisTask.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
    		   aThisTask.BringToForeground();
    	        }
    	}

    This is working fine on emulator...
    But if I deploy same application on actual phone its not working...!!!!

    Can you plz tell what will be the possible resons for this???

    I have added all Express sign capabilities in my application....

  7. #7
    Registered User talk2mks's Avatar
    Join Date
    Dec 2008
    Posts
    113
    HandlePointerEventL function work only when your application in Foreground not in background ... that's why It's work in Emulator because you are testing in foreground....for background....Impelement HandleWsEventL function in your APPUI class....
    Regards
    MKS

  8. #8
    Regular Contributor amol_benare604's Avatar
    Join Date
    Sep 2008
    Location
    Pune - India
    Posts
    378
    Thanks a lot for helping talk2mks
    I will try HandleWsEventL and let you know if same problem persist...
    Thanks again.....

  9. #9
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    Quote Originally Posted by amol_benare604 View Post
    I have added all Express sign capabilities in my application....
    Why would you ever do that?

  10. #10
    Regular Contributor amol_benare604's Avatar
    Join Date
    Sep 2008
    Location
    Pune - India
    Posts
    378
    Hi Itomuta
    I have added all capabilities bcoz., I know my code need swevent capability and that is in express sign. Every time I add a code, sometimes documentation doesnt mention capabilities... In that case if I miss single capability the code doesnt work on actual device inspite of it works on emulator ...
    So to avoid that I have added all capabilies.... It saves my time to find capability requires for the code...

  11. #11
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    Quote Originally Posted by amol_benare604 View Post
    It saves my time to find capability requires for the code...
    But it complicates your life when you are supposed to cleanup your project for the final certification of the release. It should be easier to hunt down the capability as soon as you add a new feature rather than analyse the full code at the end.

  12. #12
    Regular Contributor amol_benare604's Avatar
    Join Date
    Sep 2008
    Location
    Pune - India
    Posts
    378
    Ok Itomuta
    I will take care of this from next implementation...
    Thanks for guiding me....

Similar Threads

  1. Replies: 10
    Last Post: 2010-04-20, 07:51
  2. Detect if idle screen app is showing a dialog
    By brian.egan in forum Symbian User Interface
    Replies: 1
    Last Post: 2010-01-29, 10:56
  3. IDLE screen and app open event
    By nguyend in forum Symbian C++
    Replies: 4
    Last Post: 2009-08-10, 08:46
  4. Idle screen event
    By popeye_luck in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-10-20, 11:20
  5. How to detect idle screen plugin's rotation?
    By DeathBaba in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-08-21, 15:49

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