Android - 开始意图 [英] Android - Start Intent

查看:31
本文介绍了Android - 开始意图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在搜索如何启动 Intent 时,有些人已经列出如下.

When searching for how to launch Intents some people have listed like below.

您可以使用以下几行启动 Intent 吗?你会怎么做?

Can you launch an Intent with the following lines? How would you do it?

显示设置

#Intent;component=com.android.settings/.DisplaySettings;end

声音设置

#Intent;component=com.android.settings/.SoundSettings;end

无线设置

#Intent;component=com.android.settings/.WirelessSettings;end

拨号器

#Intent;component=com.android.contacts/.DialtactsActivity;end

推荐答案

第一行是

Intent i = new Intent();
i.setClassName("com.android.settings", "com.android.settings.DisplaySettings");
startActivity(i);

其余的将与此类似.

这篇关于Android - 开始意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆