Why doesn't setting clearTaskOnLaunch="true" cause OnCreate to be called?
<p>My application works fine, once it is initialized in the OnCreate method of my View class.  However, when I open my app after the Droid phone has been sitting idle all night, the OnCreate method is not being called.</p>

<p>I use the OnCreate to initialize data, and that in turn initializes the GUI.  The GUI clearly shows that OnCreate was not called.</p>

<p>I tried setting clearTaskOnLaunch="true" in my Manifest.  My Manifest is:</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.hedgetools.trin"
  android:versionCode="2"
  android:versionName="1.02"&gt;
  &lt;application android:icon="@drawable/icon"
               android:label="@string/app_name"
               android:clearTaskOnLaunch="true"&gt;
    &lt;activity android:name=".Trin"
              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;uses-sdk android:minSdkVersion="6" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
&lt;/manifest&gt;
</code></pre>

<p>This did not help.  My OnCreate method is not being call after the Droid phone sits idle all night.  </p>

<p>Why doesn’t clearTaskOnLaunch cause OnCreate to be called?</p>

<p>Any help or suggestions will be greatly appreciated.</p>

<p>Charles</p>
