Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor VinodRaut's Avatar
    Join Date
    May 2007
    Posts
    91
    Dear All...

    I am new at symbian development so please help...
    My question is How to ge back to previous view?
    Like I have a application default view, from that I activete some X view, from X view I activate Y view. Now from Y view I want to go back to X view.
    Though if I preserve DoActivateL(const TVwsViewId& aPrevViewId,...) then while going from default view to X view its fine.. from X to Y also its fine but when I return back from Y to X then X to default view I lost the link...

    So is there any other way to go back to caller view?

    Thanx & regards,
    Vinod.

  2. #2
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    you can activate the pariculat view bu the id you have given to the view.
    STATIC_CAST(CMyAppUi*,CEikonEnv::Static()->EikAppUi())->ActivateLocalViewL(TUid::Uid(EMygViewId));

  3. #3
    Regular Contributor VinodRaut's Avatar
    Join Date
    May 2007
    Posts
    91
    But what if my view is called from multiple view from time to time. I mean is there any app which will close the view & go back to the caller view...

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,667
    Have a look into the DoActivate function, in there you get the identifier of the last active view, just save it and use it when you want to activate it again.

    yucca

  5. #5
    Regular Contributor VinodRaut's Avatar
    Join Date
    May 2007
    Posts
    91
    ok now take a example..

    View A -> View B -> View C.
    Now if i store last view Id then view B will have id of view A & view C will have id of view B.

    Now go back. View C -> View B -> View A.
    Now view B will have id of C becoz view C will activate view B. But it should have been id of view A. So view B & C will have each others id & we will never come out of it.

    So plz consider it & then guide me.
    Thanx & regards,
    Vinod.

Similar Threads

  1. View changing
    By ckt in forum Symbian C++
    Replies: 7
    Last Post: 2007-02-22, 13:02
  2. View Image of Caller Before Accepting Call
    By jaceline in forum General Messaging
    Replies: 0
    Last Post: 2007-01-15, 06:25
  3. SIP content type
    By hlothman in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2006-05-17, 09:26
  4. Trigger event after view is Activated?
    By inc0gn1t007 in forum Symbian C++
    Replies: 0
    Last Post: 2006-03-29, 02:55
  5. Dialog doesn't appear when I go back to a view from another one.
    By bt214 in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-02-27, 04:48

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