Android应用程序和模式锁定屏幕

编程入门 行业动态 更新时间:2024-10-24 02:38:39
本文介绍了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应用程序和模式锁定屏幕

本文发布于:2023-11-27 03:09:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636322.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   屏幕   模式   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!