【问题标题】:Cordova Kiosk mode for android适用于 Android 的 Cordova Kiosk 模式
【发布时间】:2015-06-10 15:13:16
【问题描述】:

我想在 kiosk 模式下编写一个 cordova 应用程序。 我找到了this Solution。

但是如果我添加代码,我会在创建 apk 时遇到错误。

C:\temp\ksl\platforms\android\cordova\node_modules\q\q.js:126
                    throw e;
                          ^
Error code 1 for command: cmd with args: /s /c "C:\temp\ksl\platforms\
adlew cdvBuildDebug -b C:\temp\ksl\platforms\android\build.gradle -Dor
aemon=true"
ERROR building one of the platforms: Error: C:\temp\ksl\platforms\andr
a\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: C:\temp\ksl\platforms\android\cordova\build.bat: Command failed
 code 1
    at ChildProcess.whenDone (C:\Users\ebay\AppData\Roaming\npm\node_m
dova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Process.ChildProcess._handle.onexit (child_process.js:1087:5) 

如果没有错误,则无需您的代码。

感谢您的帮助

【问题讨论】:

    标签: android cordova kiosk-mode


    【解决方案1】:

    此功能现在包含在 Android 5.0 Lollipop 核心中。它被称为固定,您可以通过参数->安全->固定来访问它。 祝你好运

    【讨论】:

    • 很遗憾,这不是 Kiosk 模式。它仍然暴露了很多信息。
    猜你喜欢
    • 2014-08-28
    • 2016-07-13
    • 2019-01-29
    • 2011-01-05
    • 2015-09-26
    • 2018-01-24
    • 2020-12-27
    • 2018-08-11
    相关资源
    最近更新 更多