我试着写了一个应用程序来打开一个特殊的网址,使用"intent“。但我想用firefox focus打开它。如何在使用意图时使用firefox focus打开url?我不知道firefox focus的组件名称。
公共类MainActivity_EmbedLink扩展了AppCompatActivity {
// Used to load the 'native-lib' library on application startup.
static {
System.loadLibrary("native-lib");
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main__embed_link);
String url = "http://123.com ";
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
startActivity(intent);
finish();
}}
发布于 2017-09-09 19:30:20
根据截图,我设法让它与Tasker一起工作。
我相信您可以将其转换为代码。


https://stackoverflow.com/questions/46024014
复制相似问题