Many applications ask their users to accept an agreement, but I can't think of one I've used that's asked me for my actual signature.
Is there a good reason that your users aren't able to accept yr agreement in the usual way? (via a check box or by hitting a button marked 'I accept'?)
Why is a graphical representation of the users signature required?
It's difficult to write using a finger, and it's even more difficult to write (using a finger) on a smart phone screen.
There are also privacy concerns relating to obtaining a graphical representation of a user's signature. Once obtained, I have no idea what your company will do with my signature. A signature is a valuable piece of personal information, which could ultimately be used for identity theft.
发布评论
评论(4)
这是一个模糊的想法:
您需要一个可以允许用户在屏幕上绘图的画布对象。这是关于它的链接。 Android 绘制一条线来跟随手指
然后您需要将该位图输出为文件:将位图保存到位置
Here is a vague idea:
You'll want to have a canvas object that can allow the user to draw to the screen. Here is a link on SO about it. Android drawing a line to follow your finger
Then you'll want to output that bitmap as a file: Save bitmap to location
您可以通过两种方式执行此操作:
1.您自己的实现
您可以使用canvas来绘制签名。使用绘画对象设置签名笔画大小和签名颜色。
2.只需使用库
请参阅SignatureView库。它会做你想要的一切。
https://github.com/zahid-ali-shah/SignatureView
You can do this in two ways:
1. Your own Implementation
You can use canvas to draw signatures. Use paint object to set signature stroke size & color.
2. Simply use library
See SignatureView library. It will do all, what you want.
https://github.com/zahid-ali-shah/SignatureView
以下是我如何使用此示例捕获人类签名并保存图像:
https://demonuts.com /android-capture-digital-signature/
首先将以下内容添加到您的gradle中:
activity_main.xml:
MainActivity.java:
不要忘记在manifest.xml中授予读写权限
Here's how I have capture human signature and save image using this example:
https://demonuts.com/android-capture-digital-signature/
First add following to your gradle:
activity_main.xml:
MainActivity.java:
Don't forget to give READ-WRITE permission in manifest.xml
许多应用程序要求其用户接受协议,但我想不出我使用过的哪个应用程序要求我提供实际签名。
您的用户无法以通常的方式接受您的协议是否有充分的理由? (通过复选框或点击标有“我接受”的按钮?)
在智能手机屏幕上书写(用手指)。
还存在与获取用户签名的图形表示相关的隐私问题。一旦获得,我不知道贵公司将如何处理我的签名。签名是宝贵的个人信息,最终可能被用于身份盗窃。
Many applications ask their users to accept an agreement, but I can't think of one I've used that's asked me for my actual signature.
Is there a good reason that your users aren't able to accept yr agreement in the usual way? (via a check box or by hitting a button marked 'I accept'?)
write (using a finger) on a smart phone screen.
There are also privacy concerns relating to obtaining a graphical representation of a user's signature. Once obtained, I have no idea what your company will do with my signature. A signature is a valuable piece of personal information, which could ultimately be used for identity theft.