如何prevent被卸载的应用程序? [英] How to prevent an application from being uninstalled?

查看:211
本文介绍了如何prevent被卸载的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的家长留意子女的应用程序。所以本申请中不能由孩子除去。我需要知道如何使它卸载的,或者用户需要密码才能删除该应用程序。

I'm developing an application for parents to watch out for their children. So this application cannot be removed by the child. I need to know how to make it uninstallable or the user need password to remove that application.

推荐答案

ANKUR,

我认为最接近你的寻找是设备管理功能在2.2中引入。

I think the closest thing to what your looking for is the Device Administration feature introduced in 2.2.

一旦申请注册为设备管理器,它不能被卸载,除非其注册。这将prevent应用程序被卸载。

Once the application is registered as a Device Administrator, it can't be uninstalled unless its unregistered. This will prevent the app from being uninstalled.

虽然设备管理员API不允许这种特殊功能的密码保护功能,您可以使用密码保护您的应用程序,以prevent有人从与应用程序的设备管理功能被篡改。

While the Device Admin API doesn't allow for password protection of this particular feature, you can password protect your application to prevent someone from tampering with the Device Admin features in the app.

我使用名为SeekDroid一个应用程序,也有类似的功能。

I use an app called SeekDroid that has a similar functionality.

这篇关于如何prevent被卸载的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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