Thanks for the answers! > I believe that starting a new activity will give you automatic view > hierarchy on the back button and setContentView() will not.
That would be no problem. It can be easily solved with: public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK) { setContentView(lastView); } return true; } > It means the system can free up memory from the pieces of your > application that aren't in use. I agree, but as I have understood, freeing up memory would mean that the particular acivity is entirely shut down. The system would do that only if it is absolutely necessary. I doubt if the rest of the application continues working fine in that case. With one activity, the system would eventually shut down the whole application I think. The other thing is- applications may consume less resources without multiple activities as these are rather heavy-weight in my opinion. > Secondly, it means your application is monolithic, preventing other > applications from interacting well with your application. That's true. Depends on the philosophy of your application whether it is intended to provide parts of it. > Starting new Activity is just fine, but if you > really insist on doing your stuff in one activity take a look in > AnimatorView. Ok, I will check it. Mainly I wanted to know whether it is ok to substitute the multi-activity-approach by something different. What I really don't like about it for example is that everytime I want to add a new activity, I have to change the Manifest.xml in addition. Then, a 'Resource is out of sync' message appears, sometimes till I restart the computer...that's really annoying... --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---