只是想知道是否有人知道启动Firefox移动浏览器的正确意图.我无法在任何地方找到它,所以我希望有人知道.
谢谢
谢谢
解决方法
这将为Firefox创建一个意图:
- String url = "http://example.com/";
- Intent intent = new Intent(Intent.ACTION_MAIN,null);
- intent.addCategory(Intent.CATEGORY_LAUNCHER);
- intent.setComponent(new ComponentName("org.mozilla.firefox","org.mozilla.firefox.App"));
- intent.setAction("org.mozilla.gecko.BOOKMARK");
- intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- intent.putExtra("args","--url=" + url)
- intent.setData(Uri.parse(url));