【问题标题】:WIFI not getting open when application in KIOSK Mode. Wear OS在 KIOSK 模式下应用程序时 WIFI 无法打开。佩戴操作系统
【发布时间】:2022-12-02 17:45:14
【问题描述】:

I am developing a KIOSK Mode stand alone application for Wear OS(Samsung Watch 4, Wear OS 3.5). For KIOSK mode I am using device owner permission using ADB and used device DevicePolicyManager class to handle hardware button and status bar etc.

My Issue is, I am not able to open System WIFI settings which navigate to outside of KIOSK mode.

Just for your information I can open system bluetooth settings without disabling KIOSK mode. One more information: case 3 code work perfectly if your KIOSK mode is disable

I tried:

Case1.

context.startActivity(Intent(\"com.google.android.clockwork.settings.connectivity.wifi.ADD_NETWORK_SETTINGS\"))

I can see something gets opened and closed automatically.

Case 2.

val intent = Intent(Settings.ACTION_WIFI_SETTINGS)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
intent.addCategory(Intent.CATEGORY_LAUNCHER)
startActivity(intent)

Case 3.

startActivity(Intent(Settings.ACTION_WIFI_SETTINGS))

If any one have any idea or workaround. Much appreciate your inputs!

    标签: android kotlin wear-os kiosk-mode samsung-galaxy


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2018-06-14
    • 2013-09-09
    • 2020-01-02
    • 2018-04-26
    • 2014-09-18
    • 2022-10-13
    • 2015-10-11
    • 2022-09-27
    相关资源
    最近更新 更多