在Android的Kiosk模式 [英] Kiosk mode in Android
问题描述
我在是否以及如何在CF .NET企业级应用程序可以移植到Android设备上运行评估的过程。在Windows Mobile手机应用程序在哪里启动后在全屏模式下的应用程序自动启动并无法无意或心甘情愿地访问手机的任何其他部分的用户运行Kiosk模式。
I'm in the process of evaluating if and how a CF .NET enterprise application can be ported to run on Android devices. The application on Windows Mobile phones are run in kiosk mode where the application autostart in fullscreen-mode after booting and with the users unable to accidentally or willingly access any other parts of the phone.
是否有可能在Android意外(或心甘情愿)引导和prevent用户访问Android设备的其他部分后,只有一个应用程序自动启动?
推荐答案
您可以通过听 android.intent.action.BOOT_COMPLETED
意图的自动启动开机应用程序BroadcastReceiver的,并从那里开始的活动。在活动中,你可以注册成为新的默认主屏幕[1]和处理的关键。
You can autostart applications on boot by listening to the android.intent.action.BOOT_COMPLETED
intent in a BroadcastReceiver and start your Activity from there. In the Activity you can register yourself as the new default homescreen[1] and handle the keys.
我觉得有一些情况下,你不能处理,而无需修改框架(如对主场龙preSS显示当前活动的应用程序) - 我也有可能是错误的,虽然
I think there are some instances that you can't handle without modifying the framework (like longpress on Home to show currently active Applications) - I could also be mistaken though.
但是,对于一个原型,可能是足够的。
But for a prototype that could be sufficient.
玩得开心修修补补!
[1]:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
这篇关于在Android的Kiosk模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!