android COSU单个应用程序-锁定浏览器,仅锁定一个小工具上的网络应用程序 [英] android COSU single app - lock for browser and just one web-app on gadgets
问题描述
我对Android没有经验.我想以这种方式设置一些平板电脑,使小工具只能锁定到一个Web应用程序.我认为应该以某种方式将其锁定到浏览器(反过来,该浏览器应在平板电脑启动后直接打开,并将Web应用程序的登录页面设置为默认设置),并且浏览器应锁定到特定的Web应用程序/设置网址.
I'm not experienced with Android. I want to setup some tablets in such a way, that the gadgets are locked to just one web-app. I think it should be somehow locked to a Browser (which in turn should open directly after the launch of the tablet with the login page of the web-app set as default) and the browser should be locked to a particular web-app/ set of urls.
有人可以针对我的目的推荐工具/资源或解决方案吗?
Can somebody recommend tools/ resources or solutions for my purpose?
我确信任务本身并没有什么大不了的,我正在寻找一种解决方案,以使其尽可能简单,而无需花费大量时间来学习或开发专用的webView应用.
I am sure the task itself is not a big deal and I am searching for a solution to keep it as simple as possible without investing to much time to learn or to develop a special webView app for that purpose.
推荐答案
您可以使用 Android管理API 来设置锁定在Chrome浏览器上的设备,并将Chrome配置为锁定在单个网站上,下面的策略JSON就是这样做的.要设置设备,您可以按照快速入门指南.
You can use the Android Management API to set up a device locked on the Chrome browser and configure Chrome to be locked on a single website, the policy JSON below does just that. To set up a device you can follow the quick start guide.
以下是一项可在Chrome上锁定设备并将Chrome限制为stackoverflow.com的政策:
Here is a policy to lock a device on Chrome and restrict Chrome to stackoverflow.com:
{
"applications": [
{
"packageName": "com.android.chrome",
"installType": "FORCE_INSTALLED",
"managed_configuration": {
"URLBlacklist": ["*"],
"URLWhitelist": ["stackoverflow.com"]
},
"lockTaskAllowed": true,
"defaultPermissionPolicy": "GRANT"
}
],
"persistentPreferredActivities": [
{
"receiverActivity": "com.android.chrome",
"actions": [
"android.intent.action.MAIN"
],
"categories": [
"android.intent.category.HOME",
"android.intent.category.DEFAULT"
]
}
],
"statusBarDisabled": true
}
这篇关于android COSU单个应用程序-锁定浏览器,仅锁定一个小工具上的网络应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!