How can manage activities on stack of Android?

When we develop the android applications when we navigate from one activity to other, but once we do this process the previous activities are in the stack and when we navigate we need to go back many times, how can we avoid this problem in Android using Java.
YVSNarayanaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

simonetCommented:
If you're using activities, you can't do that, because Android is like this by design.

What you can do is use Views. This way you have a single activity that controls how/when/what views are displayed. The user won't be able to tell a single-activity/multiple-vies from multiple-activities.

Tabbed applications is one example of such design:  http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

Android's UI guideline, however, dictates that each View show have its own Activity (Activity-as-view), but that's not an iron-cast rule. You're, obviously, free to create you own app design:

http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html

http://developer.android.com/guide/practices/design/seamlessness.html#multiple-activities

There is a nice discussion in the link below that will be quite interesting:: http://www.anddev.org/how_to_switch_views_in_an_activity-t10063.html 

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
YVSNarayanaAuthor Commented:
Good
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Android

From novice to tech pro — start learning today.