0
我想建立一个Android应用程序,它可以打开和关闭的“Android火狐”如果要打开我有下面的代码完成构建一个Android应用程序中打开火狐
问题: - 如何关闭这个从我的Android打开火狐应用。
String url = "http://google.com/";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
intent.setComponent(new ComponentName("org.mozilla.firefox", "org.mozilla.firefox.App"));
this.startActivity(intent);
感谢,
您无法关闭应用内的其他应用。这将是一个安全风险。 – donfuxx