My app never goes to background, always terminate, why?
<p>I have an app that always terminate, never goes to suspend mode.</p>

<p>I have other apps that go to suspend, the only difference that I can see between them are:</p>

<ul>
<li><p>app that terminates: In the left popup menu of the main project window, no matter wich option I select, it start always with Device - 3.2 or Simulator 3.2, even If I choose myApp iPhone Simulator 4.0</p></li>
<li><p>the app that goes correctly to suspend mode, always has the Simulator 4.0 or Device 4.0</p></li>
</ul>

<p>Both apps have the same project settings:</p>

<ul>
<li>build for 4.0</li>
<li>target for 4.0</li>
</ul>

<p>I haven't added the option Application does not run in background ...</p>

<p>Also the app in the iPhone 3Gs with 4.0.1 doesn't suspend, and other apps from mine go to suspended mode correctly.</p>

<p>Still no idea where the problem is ...</p>

<p>thanks,</p>

<p>r.</p>

<p>This code return YES:</p>

<pre><code>UIDevice * device        = [ UIDevice currentDevice ];
BOOL backgroundSupported = NO;
  if( [ device respondsToSelector: @selector( isMultitaskingSupported ) ] )
    {
    NSLog(@"yes");      
}
</code></pre>

<p>edited:</p>

<p>This delegate fires:</p>

<pre><code>- (void)applicationDidEnterBackground:(UIApplication *)application {
</code></pre>

<p>but also this one:</p>

<pre><code>- (void)applicationWillTerminate:(UIApplication *)application {
</code></pre>
