×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    13

    View activation events

    Is there any way to get event of view activation/starting new app _before_ this view/app become visible?
    For example: I need my app go foreground when user exits main menu (by softkey or by on-screen button), but before Idle (homescreen) become visible. I've tried HandleWsEventL, HandleForegroundEventL, HandleViewActivation/Deactivation and it helps, but Idle screen becomes visible anyway (for a moment, though)....

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: View activation events

    It is unlikely that such API would exist.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    13

    Re: View activation events

    Quote Originally Posted by wizard_hu_ View Post
    It is unlikely that such API would exist.
    But there is.
    For example 'SPB mobile shell' can do this - when user exits main menu, he goes to it's main view, instead of Idle screen (it doesn't even appear).

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: View activation events

    What do you excatly want to do ?, basically if you start application from menu, and exit it, the menu is shown again..

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    13

    Re: View activation events

    Quote Originally Posted by symbianyucca View Post
    What do you excatly want to do ?, basically if you start application from menu, and exit it, the menu is shown again..
    I mean if user goes to main menu (system menu, by pressing menu key, for example, or by task switching) and then exits from it - my app should go foreground instead of main idle screen.

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: View activation events

    then just monitor focus events, while the idle is not in focus, just stay in background, and when you determine that it has taken focus, just move your ui to foreground. AFAIK, There are no exit events there, only focus events that could be seen.

  7. #7
    Registered User
    Join Date
    Jan 2010
    Posts
    13

    Re: View activation events

    Quote Originally Posted by symbianyucca View Post
    then just monitor focus events, while the idle is not in focus, just stay in background, and when you determine that it has taken focus, just move your ui to foreground. AFAIK, There are no exit events there, only focus events that could be seen.
    But, when I get focus event, idle app is already visible! What I ask - how can I get this event (or may be other, which indicate that idle app will be visible) BEFORE it becomes visible?

    I know that it can be done, but I can't figure how.

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: View activation events

    Wizard already answered that, I was just giving you a method that exists, so do try and see how well it would satisfy your requirements.

    or try capturing the menu key, and see whether you get better results with it.

  9. #9
    Registered User
    Join Date
    Jan 2010
    Posts
    13

    Re: View activation events

    Quote Originally Posted by symbianyucca View Post
    Wizard already answered that, I was just giving you a method that exists, so do try and see how well it would satisfy your requirements.

    or try capturing the menu key, and see whether you get better results with it.
    If you read my first message carefully, you see that I've already used every possible methods of focus monitoring. They works, but not the way I need (Idle screen shows for a moment anyway).

    May be there are other methods of focus monitoring beside those?

    PS. I didn't get your advice with menu key. What I'm supposed to do with it?

  10. #10
    Registered User
    Join Date
    Jan 2010
    Posts
    13

    Re: View activation events

    I assume, that nobody knows how tomake my app become visible instead of Idle screen, when user exits from main menu app?

Similar Threads

  1. Getting Events in S60 view architecture
    By ivgarcia in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-05-10, 16:42
  2. View activation & exit
    By heuven in forum Symbian User Interface
    Replies: 6
    Last Post: 2008-10-26, 00:06
  3. view activation notifications
    By noam segal in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-03-05, 17:12
  4. Replies: 1
    Last Post: 2007-09-05, 17:34
  5. View Activation/Initialize design
    By ravey72 in forum Symbian
    Replies: 3
    Last Post: 2007-06-13, 09:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×