Android应用程序和模式锁定屏幕 [英] Android App and Pattern Lock Screen

查看:118
本文介绍了Android应用程序和模式锁定屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个应用程序为Android 2.2或以上。

I am currently developing an app for android 2.2 or above.

欲允许用户具有访问该应用程序之前启动的登录。我想允许用户以不同的类型,如密码,PIN或图案登录之间进行选择。

I want to allow the user to enable a login before having access to the app. I want to allow the user to choose between various types of login like password, pin or pattern.

我在想,如果有可能的模式锁定添加到我自己的应用程序。是否有一个插件,我可以用它来创建一个或我自己的应用程序中使用Android的模式锁。我只希望本作的应用程序,我不希望它来更改实际的设备被锁定。

I was wondering if would be possible to add a pattern lock to my own app. Is there a plugin I can use to create one or use android's pattern lock for my own app. I only want this for the app I don't want it to change how the actual device is locked.

感谢您的帮助,您可以提供。

Thanks for any help you can provide.

推荐答案

我不认为有一个小部件这一点。我会创建影像的矩阵3X3给他们每人一个监听并跟踪用户presses它们的顺序。然后采取订单,2,3,6,5,8例如,将其保存为一个字符串23658这样的密码!哈希并保存在某个地方。只要用户输入按钮的顺序输入哈希比较保存之一。

I dont think there is a widget for this. I would create a matrix of images 3x3 give them each a listener and keep track of the order the user presses them. Then take the order, 2,3,6,5,8 for example, save them as a string "23658" this is the password! hash and save that somewhere. whenever a user inputs the button order compare the input hash to the saved one.

这篇关于Android应用程序和模式锁定屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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