My Android app has a button that executes this code in order to open the app market pointing to a certain app.
It works.
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(getResources().getString(R.string.app_url)));
startActivity(intent);
But whenever the user exits my app at that point, by hitting HOME, the next time he reopens it (resuming it, even days later), the app is STILL pointing at the app store.
How do I make any “reopening” always return back to my app’s make form/activity?
(Same as if he had hit BACK, instead of HOME, when he exited my app yesterday.)
Thanks.
From google + android developers post.