iphone:terminate application in iphone
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3421400/quit-app-in-ios4">quit app in iOS4</a>  </p>
</blockquote>



<p>hi i am beginner in iphone developement. i am working on a iphone app copatible for iphone4.
i am showing a alert view and on selecting a yes navigating to brouwser.its ok but my application going in background.but i want it to be terminate and shuld be relaunch on clicking on app icon.</p>

<pre><code>if (alertView.tag==222) {
        if (buttonIndex==0) {
            [[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"http://itunes.apple.com/"]];

        }
}
</code></pre>

<p>also it is goingin bground when i am clicking on home button.
i want app should be terminated from background also.</p>
