When the activities are started, their onCreate() and onResume() callbacks are called. You may only start your computation when e.g. The user presses a button within the activity, so that initial load is quick. Also put your longish computations within an AsyncTask so that the computation does not block the UI thread.
What if I want the specific activity only load when I switch to its tab (without having user press a button of course) like using setOnTabChangedListener() – SilverTsuki Mar 12 at 20:57.
Make 2 tabs and add them into TabHost. The problem is both of my Activities used heavy amount of memories and require time to process. Only one activity should be loaded at one time.
However when I start my application, it seems both activities are loaded which will take longer time. So I want only ONE activity allowed to be loaded upon choosing its tab, simply put if I choose first tab then first activity load, I choose second tab then second activity will load, not both.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.