锁定 Android 设备以仅运行一个应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26426654/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Lock Android Device to Run Only One App
提问by oo33
I was wondering if anyone had a relatively simple solution for us.
我想知道是否有人为我们提供了一个相对简单的解决方案。
We created an app to be used by our clients on android devices that we give them.
我们创建了一个应用程序,供我们的客户在我们提供的 Android 设备上使用。
We would like the client to only be able to use our app and have limited access to everything else (i.e. settings, email etc.) What is the best way to achieve this without using 3rd party apps.
我们希望客户只能使用我们的应用程序,并且对其他所有内容(即设置、电子邮件等)的访问权限有限。在不使用 3rd 方应用程序的情况下实现这一目标的最佳方法是什么。
Thank you in advance!
先感谢您!
采纳答案by tomandro
This may not help but the L preview has a task locking feature included that may be of some insight, I'm not aware of how it functions as yet
这可能无济于事,但 L 预览包含一个任务锁定功能,可能会有一些见解,我还不知道它是如何运作的
Task locking
任务锁定
The L Developer Preview introduces a new task locking API that lets you temporarily restrict users from leaving your app or being interrupted by notifications. This could be used, for example, if you are developing an education app to support high stakes assessment requirements on Android. Once your app activates this mode, users will not be able to see notifications, access other apps, or return to the Home screen, until your app exits the mode.
L Developer Preview 引入了一个新的任务锁定 API,可让您暂时限制用户离开您的应用程序或被通知中断。例如,如果您正在开发教育应用程序以支持 Android 上的高风险评估要求,则可以使用此方法。一旦您的应用激活此模式,用户将无法查看通知、访问其他应用或返回主屏幕,直到您的应用退出该模式。
http://developer.android.com/preview/api-overview.html
http://developer.android.com/preview/api-overview.html
Hope this helped
希望这有帮助
回答by LordRaydenMK
- Suppress the Title Bar & Make Your App a Launcher
- Root Your Tablet
- Modify System Files and Settings to hide the soft keys
- 取消标题栏并使您的应用程序成为启动器
- 根你的平板电脑
- 修改系统文件和设置以隐藏软键
On the next link you can find the complete solution for the Nexus 7 (2012)
在下一个链接中,您可以找到 Nexus 7 (2012) 的完整解决方案
http://thebitplague.wordpress.com/2013/04/05/kiosk-mode-on-the-nexus-7/
http://thebitplague.wordpress.com/2013/04/05/kiosk-mode-on-the-nexus-7/
回答by Bhautik Patel
simple Answer is:
简单的答案是:
- Lock Install button with modify system settings.
- Create your own customized-ROM and apply your requirement to that ROM.
- 使用修改系统设置锁定安装按钮。
- 创建您自己的定制 ROM 并将您的要求应用于该 ROM。
more info, visit XDADavelopers
更多信息,请访问 XDADavelopers