×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Nov 2008
    Location
    Beijing China.
    Posts
    28

    Question How to back to the main view of the cellphone?

    I am developing an audio player, I want to back to the main view of the cellphone when it's palying, so it can play in the background,

    I have used the codes below:
    TApaTask task(CEikonEnv::Static()->WsSession());
    task.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
    task.SendToBackground();

    It can only back to the last view, I want to back to the main view,does anyone know about it?

    Thank you!
    Single, that's all.

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

    Re: How to back to the main view of the cellphone?

    you could find the task for the idle home screen and put it to foreground.

  3. #3
    Registered User
    Join Date
    Nov 2008
    Location
    Beijing China.
    Posts
    28

    Re: How to back to the main view of the cellphone?

    That reminds me something, but I didn't find it.

    Can you please tell me the details?

    Thank you very much.
    Single, that's all.

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

    Re: How to back to the main view of the cellphone?

    ok, found one discussion on the topic: http://discussion.forum.nokia.com/fo...d.php?t=131018

  5. #5
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How to back to the main view of the cellphone?

    flairfrog, this is a working code:
    Code:
    const TUid KIdleStateUid = {0x101FD64C};
    TApaTaskList taskList(CCoeEnv::Static()->WsSession());
    TApaTask task = taskList.FindApp(KIdleStateUid);
    if (task.Exists())
        {
        task.BringToForeground();
        }

  6. #6
    Registered User
    Join Date
    Nov 2008
    Location
    Beijing China.
    Posts
    28

    Re: How to back to the main view of the cellphone?

    It dosen't help, my program can bring to the background, and alse can bring to the foreground ,but it is back to the last view, I want it to back to the main view of the cellphone.
    Single, that's all.

  7. #7
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How to back to the main view of the cellphone?

    What you exactly mean by "back to the main view of the cellphone"?

    As I understand, "main view of the cellphone" this is an Active Idle Screen. And code provided in my previous post works.
    Last edited by A.A.M.; 2009-02-25 at 09:40.

  8. #8
    Registered User
    Join Date
    Nov 2008
    Location
    Beijing China.
    Posts
    28

    Re: How to back to the main view of the cellphone?

    Quote Originally Posted by A.A.M. View Post
    That you exactly mean by "back to the main view of the cellphone"?

    As I understand, "main view of the cellphone" this is an Active Idle Screen. And code provided in my previous post works.

    The codes you provided is helpful, I didn't mean you before, I was talking about the last one.

    Anyway, thank you all.
    Single, that's all.

Similar Threads

  1. Multi View problem
    By hendrawan.ashari in forum Symbian
    Replies: 3
    Last Post: 2008-02-27, 07:02
  2. Where is the best to change view?
    By tqchcm in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-09-19, 07:28
  3. Subsequently switching view and displaying note (S60 3rd)
    By uttumuttu in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-07-21, 14:56
  4. Replies: 2
    Last Post: 2005-04-11, 11:36
  5. Replies: 2
    Last Post: 2004-01-28, 04:16

Posting Permissions

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