是否有可能通过Web浏览器通过url方案取消android wifi设置? [英] Is it possible to lauch android wifi settings by url scheme through web browser?
问题描述
我想在网页中添加一个链接标签,当用户通过android设备浏览器单击它时,我希望android wifi设置界面会打开.我试过下面的adb命令,它起作用了:
I want to add a link tag in a webpage, and when user clicks it through an android device browser, I hope the android wifi settings interface would open. I've tried following adb command and it worked:
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
,在阅读带有Chrome的Android Intent之后,我尝试将命令转换为url方案,我尝试使用以下代码:
and I tried to transform the command into url scheme, after reading Android Intents with Chrome, I tried with code below:
<a href="intent:#Intent;action=android.intent.action.MAIN;component=com.android.settings/.Settings;end">Open Wifi Settings</a>
它仍然无法正常工作.
有人可以帮助我吗?谢谢!
Could anyone help me? Thank you!
推荐答案
可以从浏览器调用的活动必须支持以下类别:BROWSABLE
AFAIK设置不支持
Activities that can be invoked from a browser must support category: BROWSABLE
AFAIK Setting doesn't support it
这篇关于是否有可能通过Web浏览器通过url方案取消android wifi设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!