位置和安全 -> 使用无线网络。我将如何实现这一目标? 最佳答案 开始无线设置为: Intent intent=new Intent-6ren">
gpt4 book ai didi

java - 如何启动 "settings"应用程序?

转载 作者:行者123 更新时间:2023-11-29 16:13:23 25 4
gpt4 key购买 nike

当用户运行我的应用程序时,我希望我的应用程序将用户转发到设置 -> 位置和安全 -> 使用无线网络。我将如何实现这一目标?

最佳答案

开始无线设置为:

Intent intent=new Intent(Settings.ACTION_WIRELESS_SETTINGS);
ComponentName cName = new ComponentName("com.android.settings","com.android.settings.WirelessSettings");
intent.setComponent(cName);
startActivity(intent);

关于java - 如何启动 "settings"应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11360005/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com