why "setContentView" can't work in " if " ??? thx
<p>when I was first start this app! I need a first screen in first time</p>

<pre><code>     final String PREFS_NAME = "MyPrefsFile";//
    SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);//
    if (settings.getBoolean("my_first_time", true)) {//
        //the app is being launched for first time, do something        
        Log.d("Comments1", "First time");

        setContentView(R.layout.manual);// can not work 

        // record the fact that the app has been started at least once
        settings.edit().putBoolean("my_first_time", false).commit(); 
        }
</code></pre>

<p>the code is in onCreat! when "setContentView(R.layout.manual);" is outside the "if" . that can work! by the way! Log.d("Comments1", "First time"); always can work!</p>
