Activity initialization
<p>How to make sure only once <code>Activity</code> window get initialize in Android application. I have been asked this question once and I was not sure what is the answer.
 But it seems like we can do it in <code>onCreate()</code> method.</p>

<pre><code>public class YorActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


        if (savedInstanceState == null) {
         /*Initialized here once*/
            ....................
             ....................
            ....................
        }
    }
}
</code></pre>

<p>Is this the right way of doing it or is there any other way we can achieve this? Guys please put you ideas here.</p>

<p>Thanks</p>
