TaskOnLaunch game restart after home button
<p>I read about a program using "android:clearTaskOnLaunch="true"" to restart a program from the initial state after someone pushes the home button. I can't figgure out where to put it from all the googling I have done. I put it in manifest and it didn't do anything. 
Here is what the manifest looked like.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.kobernik.crazyclowns"
    android:versionCode="1"
    android:versionName="1.0" &gt;
&lt;uses-sdk android:minSdkVersion="10" /&gt;
    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" 
        android:clearTaskOnLaunch="true"&gt;
        &lt;activity
            android:name=".CrazyClownsActivity"
            android:label="@string/app_name" &gt;
            &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;


      Is this the right place? If not where should I put it? 
</code></pre>

<p>Or should I do something in the java activity? 
It looks like this for starting the program. </p>

<pre><code> @Override
     public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          setContentView(R.layout.main);
          setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
</code></pre>

<p>I don't want is to use the saved instance state, but I can't find how to get rid of it.      </p>

<p>Thanks for any info. It is great that you all help out us newbies. </p>

<p>didn't get a final way to do this so I made a restart button to start the game again. I guess that will work for now until I figure out how saved instance state can be bypassed. </p>
