all
I'm very confused with this scenario.
I need to open a link using default android browser in my app.
The link is Google Play.
Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://play.google.com"));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
The reason I don't use market:// is because some regions will not have Google Play apk.
It pops up a chooser dialog includes Chrome , Play Store , Browser.
After I choose Browser, default browser does launch but it pops up chooser again.
Even I choose Chrome, both will have the same action.
If I use Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.yahoo.com"));
It only pop up once and show yahoo homepage correctly.
I tried under Android 4.0.4 and 4.2
Is it correct scenario? How can I avoid it pop up twice? Thanks a lot.