Android - About opening the Market from an application
<p>In order to tell the user that a new version of an Android application is available, an <em>AlertDialog</em> is displayed asking the user to go on the Market in order to download the latest version.</p>

<p>The code responsible for sending the user to the Market is the following:</p>

<pre><code>Intent intentMarket = new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.app_name)));
mContext.startActivity(intentMarket);
</code></pre>

<p>With this approach and given <a href="http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html" rel="nofollow">this</a>, the Android Market activity takes the top of the <em>back stack</em> and if the user quits the Market without returning back to the application, when he comes back by clicking on the application icon, he finds himself on the Market and not on the application which can be ambiguous for him.</p>

<p>Is there any solution to this?</p>

<p>Thanks!</p>
