So, I've been banging my head looking for a good solution for a few
days and am stuck. I have a search screen (Activity) in a tab, and
after the user enters a value and clicks "search" I would like the
results to come back in that same tab, and then if an item from the
results is selected, to show more detailed results in that same tab.
I have it all working now in separate activities, and even the first
step working in a tab, but as soon as I call.

startActivity(i);

for the results Activity, the results leave the tab!

I am having a very difficult time getting this flow to work all under
a tab. Any thoughts on how to make this happen?

I keep hearing that views should be used inside of activities, but am
I then to assume that all the logic I have right now for 3 activity is
needs to go inside 1 activity and then I need to handle setting the
content and state for each of these cases? Plus, won't the history
stack not work as pressing the back button will take the user out of
the application, instead of taking them from say the search result to
the search screen, or the details to the search results, etc. This
seems like a mess.

Can anyone show a more complex example of tabs or how one might have a
simple search, result and detail workflow staying in a tab?

I have seen a few questions on this concept of keeping sub activities
" within a tab ", but no good resolution. Please help.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to