开发者

Open a URL in opera mini browser

I've been trying to fi开发者_JS百科nd out how to create an intent that will open the specified URL in opera mini browser and i have opera mini browser installed on my android device.


startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(...)));

where ... is the URL you wish to navigate to.

If Opera Mini is your default browser, or if you do not have a default browser, this can open in Opera Mini.

If you want to force the user to choose a browser, rather than use a default, use:

startActivity(createChooser(new Intent(Intent.ACTION_VIEW, Uri.parse(...)), 'Pick a Browser'));

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜