Android的 - 从收盘应用prevent用户 [英] Android - Prevent user from closing app

查看:142
本文介绍了Android的 - 从收盘应用prevent用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经会在餐厅中使用的Andr​​oid应用程序,所以我想用户无法从应用程序中退出。
用户可以,使用应用程序的唯一的事情。

I've an android application that will be used in a restaurant, so I want that users can't exit from the app. The only thing that users can, is using application.

(如果可能的话只有管理员可以从应用程序退出,通过登录或重新启动设备,我不知道这是最好的方式)。

(If possible only admin can exit from app, by logging in or restarting device, I don't know which is the best way).

是否有解决方案或其他方式做到这一点?

Is there a solution or other way to do this?

非常感谢你!

推荐答案

你所寻找的是一个Kiosk模式的应用程序,看完记得上4.2就可以写主屏幕应用程序的行为会像如下:

What you are looking for is a Kiosk mode app, I remember reading that on 4.2 it is possible to write home screen application that in behaviour will work like that:

http://commonsware.com/博客/ 2013/02/20 / Android的4p2换亭apps.html

这篇关于Android的 - 从收盘应用prevent用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆