Android:从应用程序内启动Firefox

Android:从应用程序内启动Firefox,第1张

概述只是想知道是否有人知道启动Firefox移动浏览器的正确意图.我无法在任何地方找到它,所以我希望有人知道. 谢谢 这将为Firefox创建一个意图: String url = "http://example.com/";Intent intent = new Intent(Intent.ACTION_MAIN, null);intent.addCategory(Intent.CATEGORY_ 只是想知道是否有人知道启动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));
总结

以上是内存溢出为你收集整理的Android:从应用程序内启动Firefox全部内容,希望文章能够帮你解决Android:从应用程序内启动Firefox所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1136285.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存