Thursday, August 2, 2012

[android-developers] Re: CLEAR_TOP + start new activity. Hierarchy issue

Anyone? I've even drawn an example scheme. Profile activity might not be instantiated so simple clearing the isn't going to work.



On Sunday, July 29, 2012 11:43:07 PM UTC+4, Dmitriy F wrote:

I have a hierarchy consisting of 4 levels of depth. My profile has 2nd level of hieararchy that means that pressing back while being in profile must always return user to the 1st hierarchy level.

My problem is that link to the profile is available on all levels; so, for instance, if a user being on the 4th level clicks on the profile link his hierarchy position must be changed to the 2nd level - NOT to the 5th.

I suppose there must be an essential way of doing it. So far I've come up with combination of CLEAR_TOP to the 1st level + if(extra){startActivity(Profile)} but in this way the 1st level activity will get recreated - right ? and that's why I want you to suggest something better.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate